|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23670 "implements" and "extends" cause Apache 2 crash
Submitted: 2003-05-17 06:04 UTC Modified: 2004-09-19 17:35 UTC
From: adamgoossens at users dot sourceforge dot net Assigned: helly (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 5.0.0 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: adamgoossens at users dot sourceforge dot net
New email:
PHP Version: OS:


 [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] 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.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-17 06:08 UTC] agoossens at olc dot sa dot edu dot au
Oh, and it was Apache 2.0.43 :)
 [2003-05-17 15:15 UTC]
Reclassify as ZE2 problem.
 [2003-06-01 12:29 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

 [2004-07-23 20:44 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
 [2004-07-25 13:24 UTC] agoossens at olc dot sa dot edu dot au
Modified my above e-mail address to reflect new changed address.
 [2004-07-25 13:32 UTC] adamgoossens at users dot sourceforge dot net
Of course, it does help if I provide the new mistake.

Also, I can no longer reproduce this bug with PHP5 final and Apache 2.0.49. The script terminates with the parse error as expected.
 [2004-09-19 17:35 UTC]
It is working.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Jan 28 06:01:26 2021 UTC