#23670 [NEW]: "implements" and "extends" cause Apache 2 crash

From: Date: Sat, 17 May 2003 11:04:20 +0000
Subject: #23670 [NEW]: "implements" and "extends" cause Apache 2 crash
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39836@lists.php.net to get a copy of this message
From: agoossens at olc dot sa dot edu dot au Operating system: Windows XP Professional, SP1 PHP version: 5CVS-2003-05-17 (dev) PHP Bug Type: Apache2 related Bug description: "implements" and "extends" cause Apache 2 crash Greetings all, The following code causes an Apache2 crash under XP Pro (with Service Pack 1), using 5.0.0-dev (May 06, 2003): class Driver_DB_MySQL implements iDB extends Driver_DB { } However, if you take out the "implements iDB" or "extends Driver_DB" statements, the code works fine. Normally under this condition you'd expect PHP to throw a parser error (as is in the error log transcript below). Neither the interface iDB or the class Driver_DB have been defined yet. However, even if they are defined, the crash still occurs (until you remove one of the two statements, that is). The Apache Error Log says the following: [client 127.0.0.1] PHP Parse error: parse error, unexpected T_EXTENDS, expecting '{' in C:\webroot\public_html\foo.php on line 2, referer: http://localhost/ [Sat May 17 20:29:41 2003] [notice] Parent: child process exited with status 3221225477 -- Restarting. [Sat May 17 20:29:41 2003] [notice] Parent: Created child process 4776 No extra extensions have been enabled in php.ini. Cheers. -Adam. -- Edit bug report at http://bugs.php.net/?id=23670&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23670&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23670&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23670&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23670&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23670&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23670&r=support Expected behavior: http://bugs.php.net/fix.php?id=23670&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23670&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23670&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23670&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23670&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23670&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23670&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23670&r=gnused

« previous php.bugs (#39836) next »