Bug #78787 [Opn]: PHP 7.3 Segfault 11 Reflection/Trait
| From: | shariefjamiel at gmail dot com | Date: | Wed, 06 Nov 2019 10:15:27 +0000 |
| Subject: | Bug #78787 [Opn]: PHP 7.3 Segfault 11 Reflection/Trait | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-223596@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78787&edit=1
ID: 78787
User updated by: shariefjamiel at gmail dot com
Reported by: shariefjamiel at gmail dot com
Summary: PHP 7.3 Segfault 11 Reflection/Trait
Status: Open
Type: Bug
Package: Reflection related
Operating System: mac/linux
PHP Version: 7.3.11
Block user comment: N
Private report: N
New Comment:
This appears to be caused reflecting multiple files with traits in PHP 7.3 (not 7.2 or 7.4)
Previous Comments:
------------------------------------------------------------------------
[2019-11-06 10:13:44] shariefjamiel at gmail dot com
Description:
------------
I am getting a segfault 11 when running PHPunit 8 or analysing code with PHPStan, i have been able
recreate for PHPUnit but not PHPStan. (but the fix resolves both of them)
PHP 7.3.11 (cli) (built: Oct 24 2019 11:29:52) ( NTS )
PHPUnit 8.4.2
This appears to be caused reflecting multiple files in PHP 7.3 (not 7.2 or 7.4)
Source code:
https://github.com/jamielsharief/php-bug-segfault-11
1. download source
2. type composer install
Full explanation and gdb backtrace https://github.com/jamielsharief/php-bug-segfault-11/blob/master/README.md
Test script:
---------------
vendor/bin/phpunit tests
Expected result:
----------------
OK (3 tests, 3 assertions)
Actual result:
--------------
Segmentation fault: 11
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78787&edit=1