From: wiggum24 at gmail dot com Operating system: Redhat Enterprise Linux 4 PHP version: 5.2.3 PHP Bug Type: Performance problem Bug description: memory being exhausted easily
Description: ------------ Since upgrading from 5.1.? to 5.2.3, we're having problems with memory limits being exhausted, we never encountered this problem previously. Our memory_limit on all production servers was set to 8 meg and we never had a problem, after this upgrade I've knocked it up to 64 meg and we're still having problems with some scripts. Some instances give "memory limit exhausted", the scripts just stops without generating an error in other instances. Error is reproducable, the same scripts stop consistently. Pulling a large recordset out of a database is usually the culprit, but it happens with both MS SQL server and Postgres. I've done a bit of googling, other people are experiencing this inflated memory requirement problem. Reproduce code: --------------- $sql="SELECT * FROM blah WHERE foo=1"; $rs=$db->query($sql); Expected result: ---------------- For it to return my recordset :) Actual result: -------------- Either: - script stops mid execution without error - generates "memory limit exhausted" error -- Edit bug report at http://bugs.php.net/?id=41675&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41675&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41675&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41675&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41675&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41675&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41675&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41675&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41675&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41675&r=support Expected behavior: http://bugs.php.net/fix.php?id=41675&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41675&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41675&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41675&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41675&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41675&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41675&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41675&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41675&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41675&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41675&r=mysqlcfg
