#38469 [NEW]: json tests failed, leaks memory

From: Date: Wed, 16 Aug 2006 05:27:56 +0000
Subject: #38469 [NEW]: json tests failed, leaks memory
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-100847@lists.php.net to get a copy of this message
From: judas dot iscariote at gmail dot com Operating system: linux 64 bit PHP version: 5.2.0RC1 PHP Bug Type: Scripting Engine problem Bug description: json tests failed, leaks memory Description: ------------ Hi: the json extension test suite fails, because PHP leaks memory in ext/json/tests/003.php ext/json/tests/005.php ps: ext/pdo/tests/bug_38394.phpt also fails. Reproduce code: --------------- tests json 003 and 005. Expected result: ---------------- no memory leaks Actual result: -------------- 013+ /local/local/bodegon/php-debug/Zend/zend_execute.c(838) : Freeing 0x2B57DCDB9C18 (24 bytes), script=/local/local/bo degon/php-debug/ext/json/tests/005.php^M 147 014+ [Wed Aug 16 01:23:03 2006] Script: '/local/local/bodegon/php-debug/ext/json/tests/005.php'^M 148 015+ /local/local/bodegon/php-debug/Zend/zend_vm_execute.h(18188) : Freeing 0x2B57DCDBB168 (72 bytes), script=/local/loc al/bodegon/php-debug/ext/json/tests/005.php^M 149 016+ /local/local/bodegon/php-debug/Zend/zend_API.c(819) : Actual location (location was relayed)^M 150 017+ Last leak repeated 1 time^M 151 018+ [Wed Aug 16 01:23:03 2006] Script: '/local/local/bodegon/php-debug/ext/json/tests/005.php'^M 152 019+ /local/local/bodegon/php-debug/Zend/zend_execute.c(1079) : Freeing 0x2B57DCDBB318 (71 bytes), script=/local/local/b odegon/php-debug/ext/json/tests/005.php^M 153 020+ /local/local/bodegon/php-debug/Zend/zend_hash.c(383) : Actual location (location was relayed)^M 154 021+ === Total 4 memory leaks detected === -- Edit bug report at http://bugs.php.net/?id=38469&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38469&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38469&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38469&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38469&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38469&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38469&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38469&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38469&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38469&r=support Expected behavior: http://bugs.php.net/fix.php?id=38469&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38469&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38469&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38469&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38469&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38469&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38469&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38469&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38469&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38469&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38469&r=mysqlcfg

« previous php.bugs (#100847) next »