|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-09-23 06:10 UTC] laruence@php.net
[2015-09-23 06:10 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2015-09-29 13:10 UTC] ab@php.net
[2016-07-20 11:36 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 14:00:01 2025 UTC |
Description: ------------ verify type fail will leak memory if the op1 of zend_return is IS_CONST (only visible run without opcache due to interned-string-fy in opcache) Test script: --------------- <?php function getNumber() : int { return "foo"; } try { getNumber(); } catch (TypeError $e) { } ?> Expected result: ---------------- non memleak Actual result: -------------- $ /home/huixinchen/local/php7/bin/php -n /tmp/1.php [Wed Sep 23 13:59:30 2015] Script: '/tmp/1.php' /home/huixinchen/opensource/php-7.0/Zend/zend_string.h(121) : Freeing 0x7FFFF8059B00 (32 bytes), script=/tmp/1.php === Total 1 memory leaks detected ===