Bug #78999 [Asn->Csd]: Cycle leak when using function result as temporary
| From: | dmitry@php.net | Date: | Thu, 19 Dec 2019 20:19:41 +0000 |
| Subject: | Bug #78999 [Asn->Csd]: Cycle leak when using function result as temporary | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-224427@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78999&edit=1
ID: 78999
Updated by: dmitry@php.net
Reported by: nikic@php.net
Summary: Cycle leak when using function result as temporary
-Status: Assigned
+Status: Closed
Type: Bug
Package: Scripting Engine problem
PHP Version: 7.4Git-2019-12-19 (Git)
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=eb846939b1ecc45fbc4898f4234fea128e8f9551
Log: Fixed bug #78999 (Cycle leak when using function result as temporary)
Previous Comments:
------------------------------------------------------------------------
[2019-12-19 11:34:15] nikic@php.net
Description:
------------
We destroy temporaries using zval_ptr_dtor_nogc, so the root is not registered.
Test script:
---------------
<?php
function get() {
$t = new stdClass;
$t->prop = $t;
return $t;
}
var_dump(get());
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78999&edit=1