FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » ini_get("memory_limit") returns an empty string
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: ini_get("memory_limit") returns an empty string [message #182393 is a reply to message #182388] Fri, 02 August 2013 15:25 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 8/2/2013 1:18 AM, jaialai(dot)technology(at)gmail(dot)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(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Newline (cr/lf) in imagestring
Next Topic: Adding (Add - Subtract) values from two different tables to another table
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 03:47:32 GMT 2024

Total time taken to generate the page: 0.04848 seconds