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


Groups > comp.lang.php > #10344

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

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: ini_get("memory_limit") returns an empty string
Date 2013-08-02 11:25 -0400
Organization A noiseless patient Spider
Message-ID <ktgikl$96k$1@dont-email.me> (permalink)
References <6e82$51fb4122$484a174a$29006@news.eurofeeds.com>

Show all headers | View raw


On 8/2/2013 1:18 AM, 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.
> When I try and reproduce this error in a command line script
> I cannot reproduce this behavior.
>
> Does anyone here have any experience with this unexpected behavior?
> If so, what causes this to happen? Seemingly it only occurs when the
> code is executed via Apache?

Can't say as I've seen it.  What's your entire code?  And what does 
phpinfo() show?

Even if you don't set a memory limit, PHP should have a default (128M).

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

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