Bug #70681 [Asn->Csd]: Segfault when binding $this of internal instance method to null
| From: | nikic@php.net | Date: | Fri, 09 Oct 2015 21:08:52 +0000 |
| Subject: | Bug #70681 [Asn->Csd]: Segfault when binding $this of internal instance method to null | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-196508@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: Assigned
+Status: Closed
Type: Bug
Package: Scripting Engine problem
PHP Version: 7.0.0RC4
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of nikic
Revision: http://git.php.net/?p=php-src.git;a=commit;h=bbae7ddf29192af25a3a776dfc52508c162d2ea6
Log: Fixed bug #70681
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