From: clouard at gmail dot com Operating system: Linux PHP version: 4.4.1 PHP Bug Type: Scripting Engine problem Bug description: Problem with --enable-memory-limit
Description: ------------ With PHP 4.4.1 on Linux, using this configure command : './configure' '--with-apxs=/usr/sbin/apxs' '--with-mysql' '--with-ldap' '--enable-memory-limit' memory_get_usage does NOT work (fatal error, unknown function), phpinfo() does not return the memory limit even if set in php.ini. After installing PHP 4.3.8 with the same configure command, it works perfectly. I did not test any version between 4.3.8 and 4.4.1. Is this a regression ? Thanks, Jean-Christophe Clouard. Reproduce code: --------------- <?php echo memory_get_usage(); ?> Expected result: ---------------- 3024256 // or any result Actual result: -------------- Fatal error: Call to undefined function memory_get_usage() in /srv/www/htdocs/test.php on line 3 -- Edit bug report at http://bugs.php.net/?id=35553&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35553&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35553&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35553&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35553&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35553&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35553&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35553&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35553&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35553&r=support Expected behavior: http://bugs.php.net/fix.php?id=35553&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35553&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35553&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35553&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35553&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35553&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35553&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35553&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35553&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35553&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35553&r=mysqlcfg