Skip to content

Instantly share code, notes, and snippets.

@Majkl578
Created December 5, 2011 02:35
Show Gist options
  • Save Majkl578/1432056 to your computer and use it in GitHub Desktop.
Save Majkl578/1432056 to your computer and use it in GitHub Desktop.
PHP 5.4 (php5.4-201112050130) segmentation fault (https://bugs.php.net/bug.php?id=60444)
<?php
class Foo {
public function __construct() {
require_once __DIR__ . '/b.php';
Some::foo($this);
}
}
new Foo;
<?php
class Some {
public static function foo(Foo $foo) {}
}
class Bar extends Foo {}
#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment