Bug #70215 [Opn->Asn]: segfault when __invoke is static
| From: | bwoebi@php.net | Date: | Sat, 08 Aug 2015 14:18:46 +0000 |
| Subject: | Bug #70215 [Opn->Asn]: segfault when __invoke is static | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-195028@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70215&edit=1
ID: 70215
Updated by: bwoebi@php.net
Reported by: sjon at hortensius dot net
Summary: segfault when __invoke is static
-Status: Open
+Status: Assigned
Type: Bug
Package: Reproducible crash
Operating System: archlinux
PHP Version: 7.0.0beta3
-Assigned To:
+Assigned To: bwoebi
Block user comment: N
Private report: N
New Comment:
Looks like a regression introduced by http://git.php.net/?p=php-src.git;a=blobdiff;f=Zend/zend_vm_execute.h;h=527de7d1967af7087738344697ec6d0eca9fab46;hp=950353c9a2cee8e4870ce358e791c672a05d84c2;hb=2d6f0e4584375c90a895fed4074d579f364aa347;hpb=351b4e8015a45de1abb64bc5acd77ae0d7fbe92d
Will fix shortly.
Previous Comments:
------------------------------------------------------------------------
[2015-08-08 14:00:00] sjon at hortensius dot net
Description:
------------
PHP correctly shows a Warning, but also segfaults when executing the script. This should be fixed,
or the Warning should be updated to a Fatal instead
7beta3 is the only version that has this problem as can be seen on http://3v4l.org/C9KDr
Test script:
---------------
<?php
class A {
public static function __invoke()
{
echo __CLASS__;
}
}
class B extends A {
}
$b = new B;
$b();
Expected result:
----------------
Warning: The magic method __invoke() must have public visibility and cannot be static in /in/C9KDr
on line 4
A
Actual result:
--------------
Warning: The magic method __invoke() must have public visibility and cannot be static in /in/C9KDr
on line 4
Process exited with code 139.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70215&edit=1