Re: com php-src: Fixed possible crash: ext/opcache/Optimizer/zend_call_graph.c

From: Date: Fri, 06 May 2016 09:52:50 +0000
Subject: Re: com php-src: Fixed possible crash: ext/opcache/Optimizer/zend_call_graph.c
References: 1 2  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92051@lists.php.net to get a copy of this message
On Fri, May 6, 2016 at 11:38 AM, Dmitry Stogov <dmitry@zend.com> wrote: > Hi Nikita, > > Please check this fix. > PHP crashed on the following script. > > <?php > class C1 { > static function foo() { > static $a = 0; > return ++$a; > } > } > class C2 extends C1 { > } > var_dump(C1::foo()); > var_dump(C1::foo()); > var_dump(C1::foo()); > var_dump(C2::foo()); > var_dump(C2::foo()); > var_dump(C2::foo()); > ?> > > Thanks. Dmitry. > This looks correct, thanks for the fix. I incorrectly assumed that each user op_array also has a func_info, but this is not true in the case you showed due to the op_array->scope == ce check in the collection function. Nikita

« previous php.cvs (#92051) next »