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

From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: ini_get("memory_limit") returns an empty string
Date 2013-08-02 17:53 +0200
Message-ID <b622uvFps4bU1@mid.individual.net> (permalink)
References <6e82$51fb4122$484a174a$29006@news.eurofeeds.com>

Show all headers | 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