From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.3.0RC1 PHP Bug Type: Reproducible crash Bug description: Segmentation fault
The following code segfaults. class Class2 extends Class1 { } class Class1 { function Class2(){ return new Class2; } } Class1::Class2(); I don't actually know if it's valid PHP code or not, but I don't think it should segfault either way. Conditions: It only happens if Class2 extends Class1. It only happens if Class2 does not have a constructor. Confirmed with 4.2.2 and 4.3.0RC1 on Slackware 8.1, 2.4.19 and 4.2.3 on FreeBSD 4.4-RELEASE. Configure line: './configure' '--with-mysql' '--with-apxs=/usr/sbin/apxs' I've never done a backtrace before, and I'm not sure I did it right, but hopefully this is of some use to someone... :) (gdb) run Starting program: /usr/local/bin/php index.html Program received signal SIGSEGV, Segmentation fault. 0x0812cda5 in execute (op_array=0x81b6c34) at /usr/src/php-4.3.0RC1/Zend/zend_execute.c:1002 1002 EX(fbc) = NULL; (gdb) bt #0 0x0812cda5 in execute (op_array=0x81b6c34) at /usr/src/php-4.3.0RC1/Zend/zend_execute.c:1002 #1 0x081322ea in execute (op_array=0x81b6c34) at /usr/src/php-4.3.0RC1/Zend/zend_execute.c:1639 #2 0x081322ea in execute (op_array=0x81b6c34) at /usr/src/php-4.3.0RC1/Zend/zend_execute.c:1639 #3 0x081322ea in execute (op_array=0x81b6c34) at /usr/src/php-4.3.0RC1/Zend/zend_execute.c:1639 #4 0x081322ea in execute (op_array=0x81b6c34) at /usr/src/php-4.3.0RC1/Zend/zend_execute.c:1639 -- Edit bug report at http://bugs.php.net/?id=20567&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20567&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20567&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20567&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20567&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20567&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20567&r=support Expected behavior: http://bugs.php.net/fix.php?id=20567&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20567&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20567&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20567&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20567&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20567&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20567&r=isapi