php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32890 memory limit change has no effect
Submitted: 2005-04-29 12:58 UTC Modified: 2005-05-02 09:29 UTC
From: subramanian dot palanirajan at cognizant dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.0.3 OS: Windows XP
Private report: No CVE-ID: None
 [2005-04-29 12:58 UTC] subramanian dot palanirajan at cognizant dot com
Description:
------------
I tried to deploy SugarCRM 2.5.1d on PHP 5.0.3 (on Windows XP). Sugar demands a minumim memory limit allocation of 10 M. I updated the php.ini file at the following location

memory_limit = 11M      ; Maximum amount of memory a script may consume (8MB)

I restarted Apache after updating the php.ini file.

Still the warning does not go away when i try to run SugarCRM.The text of the warning is as follows.

"PHP Memory Limit >= 10M Warning: (Set this to 10M or larger in your php.ini file)"

Please note that I have compiled PHP with the "--enable-memory-limit" option. I do the following steps to compile PHP.

> buildconf.bat

> cscript.exe /nologo configure.js --enable-prefix=C:\dev\php5 --with-extra-includes=../php_build/includes --with-extra-libs=../php_build/libs --enable-apache2handler --with-mysql --enable-memory-limit

> nmake.exe install

I don't know if it is relevant, but I compile PHP from within a Cygwin shell, but I still compile only with VC++ compiler (pure Windows binary).



Expected result:
----------------
After setting the memory limit in the php.ini file to greater than 10 M and restarting Apache, I expect the SugarCRM warning to disappear.


Actual result:
--------------
The following warning comes up in the "System Check" performed by SugarCRM upon install.

PHP Memory Limit >= 10M Warning: (Set this to 10M or larger in your php.ini file) 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-29 13:13 UTC] andrey@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

please check the code of the CRM to see how does it find that the memory limit is not > 10M. Then if something is wrong please provide us with a short reproducing script.

Thank you
 [2005-05-02 09:18 UTC] subramanian dot palanirajan at cognizant dot com
Sugar is not part of the picture (although the original description may have given that impression).  PHP was built with "--enable-memory-limit" defined, but although other changes in the php.ini file are being picked up, changes to memory_limit are not.  (Note as a workaround, I created a build that had the hardcoded default for memory_limit changed in main.c from 8 to 12.)  phpinfo() shows:

Configure Command:  cscript /nologo configure.js "--enable-prefix=C:\dev\php5" "--with-extra-includes=../php_build/includes" "--with-extra-libs=../php_build/libs" "--enable-apache2handler" "--with-mysql" "--enable-memory-limit"
...
Configuration File (php.ini) Path  C:\WINDOWS\php.ini  
...
memory_limit 12M 12M

even though the php.ini file at that location contains

memory_limit = 11      ; Maximum amount of memory a script may consume
 [2005-05-02 09:29 UTC] sniper@php.net
Obviously it's still using the hardcoded limit you set.
This is not a PHP bug, ask further support questions elsewhere.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 08:01:32 2024 UTC