From: z...@php.net Operating system: Ubuntu Linux PHP version: 5.3CVS-2009-05-24 (CVS) PHP Bug Type: Scripting Engine problem Bug description: memory leak
Description: ------------ run-tests.php reports a memory leak on a simple test case Checked the PHP 5.2 development stream with the same test and get the expected result(PASS) Reproduce code: --------------- export TEST_PHP_EXECUTABLE=/mnt/workspace/PHP/php53/sapi/cli/php $TEST_PHP_EXECUTABLE /mnt/workspace/PHP/php53/run-tests.php -m hw.phpt where hw.phpt is : --TEST-- hw --FILE-- <?php echo "hello world\n"; ?> --EXPECT-- hello world Expected result: ---------------- PASS Actual result: -------------- PHP : /mnt/workspace/PHP/php53/sapi/cli/php PHP_SAPI : cli PHP_VERSION : 5.3.0RC3-dev ZEND_VERSION: 2.3.0 PHP_OS : Linux - Linux zoe-laptop 2.6.27-11-generic #1 SMP Thu Jan 29 19:24:39 UTC 2009 i686 INI actual : /home/zoe/TESTS/simple More .INIs : CWD : /home/zoe/TESTS/simple Extra dirs : VALGRIND : valgrind-3.3.1-Debian ===================================================================== Running selected tests. LEAK hw [hw.phpt] ===================================================================== Number of tests : 1 1 Tests skipped : 0 ( 0.0%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 0 ( 0.0%) ( 0.0%) Expected fail : 0 ( 0.0%) ( 0.0%) Tests leaked : 1 (100.0%) (100.0%) Tests passed : 0 ( 0.0%) ( 0.0%) --------------------------------------------------------------------- Time taken : 4 seconds ===================================================================== ===================================================================== LEAKED TEST SUMMARY --------------------------------------------------------------------- hw [hw.phpt] ===================================================================== the hw.mem file is here: http://pastebin.ca/1433064 -- Edit bug report at http://bugs.php.net/?id=48374&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48374&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48374&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48374&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48374&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48374&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48374&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48374&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48374&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48374&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48374&r=support Expected behavior: http://bugs.php.net/fix.php?id=48374&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48374&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48374&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48374&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48374&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48374&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48374&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48374&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48374&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48374&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48374&r=mysqlcfg