On 02/08/13 07:18,
jaialai.t...@gmail.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.
--
//Aho