Bug #79830 [NEW]: Memory leak in zend_hash and zend_string

From: Date: Sat, 11 Jul 2020 02:45:40 +0000
Subject: Bug #79830 [NEW]: Memory leak in zend_hash and zend_string
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227951@lists.php.net to get a copy of this message
From: changochen1 at gmail dot com Operating system: PHP version: 8.0Git-2020-07-11 (Git) Package: Scripting Engine problem Bug Type: Bug Bug description:Memory leak in zend_hash and zend_string Description: ------------ LOG: --- [Fri Jul 10 22:44:16 2020] Script: '/home/yongheng/php_commit/php_poc24.php' /home/yongheng/php_clean/Zend/zend_hash.c(278) : Freeing 0x00007f1300e585a0 (56 bytes), script=/home/yongheng/php_commit/php_poc24.php [Fri Jul 10 22:44:16 2020] Script: '/home/yongheng/php_commit/php_poc24.php' /home/yongheng/php_clean/Zend/zend_hash.c(171) : Freeing 0x00007f1300e6dc00 (320 bytes), script=/home/yongheng/php_commit/php_poc24.php [Fri Jul 10 22:44:16 2020] Script: '/home/yongheng/php_commit/php_poc24.php' /home/yongheng/php_clean/Zend/zend_string.h(141) : Freeing 0x00007f1300e80a00 (224 bytes), script=/home/yongheng/php_commit/php_poc24.php Last leak repeated 1 time === Total 4 memory leaks detected === --- Test script: --------------- <? spl_autoload_register ( function () { ob_start ( function () { var_dump ( function ( $a ) { } ) ; } ) ; } ) ; try { new ( 'p' ) ; } catch ( b ) { } -- Edit bug report at https://bugs.php.net/bug.php?id=79830&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79830&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79830&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79830&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79830&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79830&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79830&r=support Expected behavior: https://bugs.php.net/fix.php?id=79830&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79830&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79830&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79830&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79830&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79830&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79830&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79830&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79830&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79830&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79830&r=mysqlcfg

« previous php.bugs (#227951) next »