Bug #79830 [Asn->Csd]: Memory leak in zend_hash and zend_string

From: Date: Sat, 11 Jul 2020 06:48:29 +0000
Subject: Bug #79830 [Asn->Csd]: Memory leak in zend_hash and zend_string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227957@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79830&edit=1 ID: 79830 Updated by: twosee@php.net Reported by: changochen1 at gmail dot com Summary: Memory leak in zend_hash and zend_string -Status: Assigned +Status: Closed Type: Bug Package: Scripting Engine problem PHP Version: 8.0Git-2020-07-11 (Git) Assigned To: twosee Block user comment: N Private report: N New Comment: Automatic comment on behalf of twose@qq.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=56dec3cc73829cefe9817d4c59ea3873dde1f443 Log: Fixed bug #79830 introduced by fixing bug #79821 Previous Comments: ------------------------------------------------------------------------ [2020-07-11 02:45:39] changochen1 at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=79830&edit=1

« previous php.bugs (#227957) next »