From: Operating system: Linux Debian PHP version: 5.4SVN-2011-12-05 (snap) Package: Reproducible crash Bug Type: Bug Bug description:Segmentation fault with include & class extending
Description: ------------ Crash on combination of class & include & extends. Test script: --------------- a.php: <?php class Foo public function __construct() { require_once __DIR__ . '/b.php'; Some::foo($this); } } new Foo; ---------------------------------------------- b.php: <?php class Some { public static function foo(Foo $foo) {} } class Bar extends Foo {} ---------------------------------------------- Now execute a.php. Expected result: ---------------- no segfault Actual result: -------------- SIGSEGV backtrace: #0 0x0000000000a0e910 in ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_CONST_HANDLER (execute_data=0x7f7113df5200) at /storage/build/php/5.4/php5.4-201112050130/Zend/zend_vm_execute.h:3399 #1 0x0000000000a02483 in execute (op_array=0x7f7113e2c290) at /storage/build/php/5.4/php5.4-201112050130/Zend/zend_vm_execute.h:410 #2 0x00000000009c4c82 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /storage/build/php/5.4/php5.4-201112050130/Zend/zend.c:1272 #3 0x000000000093a3b2 in php_execute_script (primary_file=0x7fffb311e710) at /storage/build/php/5.4/php5.4-201112050130/main/main.c:2414 #4 0x0000000000b09d55 in do_cli (argc=2, argv=0x7fffb311eac8) at /storage/build/php/5.4/php5.4-201112050130/sapi/cli/php_cli.c:983 #5 0x0000000000b0adea in main (argc=2, argv=0x7fffb311eac8) at /storage/build/php/5.4/php5.4-201112050130/sapi/cli/php_cli.c:1356 -- Edit bug report at https://bugs.php.net/bug.php?id=60444&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60444&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60444&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60444&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60444&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60444&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60444&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60444&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60444&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60444&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60444&r=support Expected behavior: https://bugs.php.net/fix.php?id=60444&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60444&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60444&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60444&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60444&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60444&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60444&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60444&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60444&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60444&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60444&r=mysqlcfg