From: jagermeistermeister at gmail dot com Operating system: Windows PHP version: 5.2.0 PHP Bug Type: Feature/Change Request Bug description: --enable-memory-limit for win32 binaries default on
Description: ------------ I'd like to use the memory limit on Windows, after 2 days of trying to compile it, I'd just thought I'd suggest it to be on by default. --enable-memory-limit adds functions like memory_get_usage(), let's you set a max. memory consumption of a PHP script and several extensions make use of it (APD, Xdebug). I think it would be an useful addition. I read in another bugpost that this is off by default for performance reasons, which is rather contradicting... I read somewhere that most PHP developers work on Windows (I believe that statement came from Zend itself). If those developers were to write their code keeping in mind a memory limit, overall performance of PHP scripts would go up, in my humble opinion. Expected result: ---------------- Could --enable-memory-limit be on by default for win32 binaries? Actual result: -------------- --enable-memory-limit is off by default for win32 binaries -- Edit bug report at http://bugs.php.net/?id=39807&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39807&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39807&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39807&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39807&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39807&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39807&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39807&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39807&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39807&r=support Expected behavior: http://bugs.php.net/fix.php?id=39807&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39807&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39807&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39807&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39807&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39807&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39807&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39807&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39807&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39807&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39807&r=mysqlcfg