Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #10345

Re: ini_get("memory_limit") returns an empty string

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" <user@example.net>
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 <b622uvFps4bU1@mid.individual.net> (permalink)
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

Show key headers only | View raw


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

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

ini_get("memory_limit") returns an empty string jaialai.technology@gmail.com - 2013-08-02 01:18 -0400
  Re: ini_get("memory_limit") returns an empty string Denis McMahon <denismfmcmahon@gmail.com> - 2013-08-02 15:11 +0000
  Re: ini_get("memory_limit") returns an empty string Jerry Stuckle <jstucklex@attglobal.net> - 2013-08-02 11:25 -0400
  Re: ini_get("memory_limit") returns an empty string "J.O. Aho" <user@example.net> - 2013-08-02 17:53 +0200
    Re: ini_get("memory_limit") returns an empty string jaialai.technology@gmail.com - 2013-08-03 22:28 -0400

csiph-web