Bug #70681 [Opn->Asn]: Segfault when binding $this of internal instance method to null

From: Date: Fri, 09 Oct 2015 20:38:17 +0000
Subject: Bug #70681 [Opn->Asn]: Segfault when binding $this of internal instance method to null
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196506@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70681&edit=1 ID: 70681 Updated by: nikic@php.net Reported by: nikic@php.net Summary: Segfault when binding $this of internal instance method to null -Status: Open +Status: Assigned Type: Bug Package: Scripting Engine problem PHP Version: 7.0.0RC4 -Assigned To: +Assigned To: nikic Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2015-10-09 20:38:04] nikic@php.net Description: ------------ We currently allow binding $this for internal instance methods to NULL. Test script: --------------- <?php $c = (new ReflectionMethod('SplStack', 'count'))->getClosure(new SplStack); $c = $c->bindTo(null); var_dump($c()); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70681&edit=1

« previous php.bugs (#196506) next »