| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
  [2019-11-06 10:13 UTC] 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 07:00:01 2025 UTC | 
Reduced test case: <?php trait T { private $prop; } class C1 { /** Doc comment */ private $prop; } class C2 extends C1 { } class C3 extends C2 { use T; } C3 has an inherited, non-duplicated shadow property that we're trying to release. I've fixed something similar before, but apparently not for the trait binding case. Doesn't occur on 7.2 because shadow properties were duplicate there, doesn't occur on 7.4 because it does not use shadow properties.