Re: Translating optional zval **withzend_parse_parameters()to PHP 7

From: Date: Sat, 26 Nov 2016 14:14:26 +0000
Subject: Re: Translating optional zval **withzend_parse_parameters()to PHP 7
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-97199@lists.php.net to get a copy of this message
On 26.11.2016 at 13:55, Christoph M. Becker wrote: > On 26.11.2016 at 12:45, Nikita Popov wrote: > >> The fact that php_pcre.c uses zval_dtor() is simply a bug, because code like >> >> $obj = new stdClass; >> $obj->obj = $obj; >> preg_match('/./', 'x', $obj); >> >> leaks. > > Indeed. At least preg_replace()'s $count parameter has the same issue. > Is there already a bug report about this? FTR: reported as <https://bugs.php.net/bug.php?id=73612>. -- Christoph M. Becker

« previous php.internals (#97199) next »