Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: ini_get("memory_limit") returns an empty string Date: Fri, 02 Aug 2013 17:53:03 +0200 Lines: 27 Message-ID: References: <6e82$51fb4122$484a174a$29006@news.eurofeeds.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net MoKQ4dgCe0CYFfaGx1QD+gRFa+39fwC39dnwaneM1+9HQCjN53 Cancel-Lock: sha1:SpXJUYe2WuYax6+nzgBqfzzpERg= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130628 Thunderbird/17.0.7 In-Reply-To: <6e82$51fb4122$484a174a$29006@news.eurofeeds.com> Xref: csiph.com comp.lang.php:10345 On 02/08/13 07:18, jaialai.technology@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