Bug #70215 [Asn->Csd]: segfault when __invoke is static

From: Date: Sat, 08 Aug 2015 14:19:33 +0000
Subject: Bug #70215 [Asn->Csd]: segfault when __invoke is static
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195029@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: Assigned +Status: Closed Type: Bug Package: Reproducible crash Operating System: archlinux PHP Version: 7.0.0beta3 Assigned To: bwoebi Block user comment: N Private report: N New Comment: Automatic comment on behalf of bobwei9@hotmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=cab75d8b00b6e86f6e2ede1ba3b3bd35518fc3bd Log: Fixed bug #70215 (segfault when __invoke is static) Previous Comments: ------------------------------------------------------------------------ [2015-08-08 14:18:45] bwoebi@php.net 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#195029) next »