FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » ini_get("memory_limit") returns an empty string
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: ini_get("memory_limit") returns an empty string [message #182419 is a reply to message #182394] Sun, 04 August 2013 02:28 Go to previous message
jaialai.technology is currently offline  jaialai.technology
Messages: 2
Registered: August 2013
Karma:
Junior Member
On 8/2/13 11:53 AM, J.O. Aho wrote:
> On 02/08/13 07:18, jaialai(dot)technology(at)gmail(dot)com wrote:
>> I am using php 5.3.3 on Cent OS 6.
>> I find that in my web application that a call to ini_get("memory_limit")
>> returns an empty string.
>
> Do you get an empty string or false?
> var_dump(ini_get("memory_limit"));
>
> If you actually get an false value, then you managed to enter some
> invisible characters into the string and those the value can't be found.
>
> Empty string and false looks the same if you are doing
>
> echo ini_get("memory_limit");
>
>
>> When I try and reproduce this error in a command line script
>> I cannot reproduce this behavior.
>
> you using the same script or you written another one? If later than you
> have not got the invisible characters and those it "works" as you expect
> in cli while it seem to work trough Apache.
Thank you (and everyone else on this thread!) for the advice.
Turns out that a bit of third party code is calling ini_set() and
screwing everything up. I just didn't realize it when I made my post.
This whole business of calling ini_set() is pretty evil!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Newline (cr/lf) in imagestring
Next Topic: Adding (Add - Subtract) values from two different tables to another table
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 22:29:52 GMT 2024

Total time taken to generate the page: 0.04683 seconds