|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-05-17 06:04 UTC] adamgoossens at users dot sourceforge dot net
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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
I have verified this bug with the following version, and reopened it. PHP 5.0.0 (cli) (built: Jul 17 2004 16:32:19) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.0, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.0.2, Copyright (c) 2003-2004, by Zend Technologies with Zend Optimizer v2.5.2, Copyright (c) 1998-2004, by Zend Technologies with Zend Debugger v3.5.0, Copyright (c) 1999-2004, by Zend Technologies