#30453 [NoF->Opn]: php parser does not work properly (2)
| From: | guth at fiifo dot u-psud dot fr | Date: | Sat, 07 May 2005 01:16:18 +0000 |
| Subject: | #30453 [NoF->Opn]: php parser does not work properly (2) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-78741@lists.php.net to get a copy of this message | ||
ID: 30453
User updated by: guth at fiifo dot u-psud dot fr
-Summary: php parser don't work properly (2)
Reported By: guth at fiifo dot u-psud dot fr
-Status: No Feedback
+Status: Open
Bug Type: Zend Engine 2 problem
Operating System: Linux
PHP Version: 5.0.2
Assigned To: andi
New Comment:
No change.
Fatal error: Class 'GroupModule' not found in /www/test3.php on line 5
Previous Comments:
------------------------------------------------------------------------
[2005-04-02 01:00:27] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2005-03-25 01:34:16] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2004-10-16 02:06:37] guth at fiifo dot u-psud dot fr
Description:
------------
Look at the following code...
Note that there is no difference between the first case and the third
case. I just add an include in the first case.
Reproduce code:
---------------
test3.php :
<?php
include "test4.php";
class ClassGroupModule extends GroupModule implements GroupInterface {
}
abstract class GroupModule extends Module { }
?>
<?php
include "test4.php";
class ClassGroupModule extends GroupModule implements GroupInterface {
}
abstract class GroupModule { }
?>
<?php
abstract class Module { }
interface GroupInterface { }
class ClassGroupModule extends GroupModule implements GroupInterface {
}
abstract class GroupModule extends Module { }
?>
test4.php
<?php
abstract class Module { }
interface GroupInterface { }
?>
Expected result:
----------------
Case 1 :
- Should work
Case 2 :
- Should work
Case 3 :
- Should work
Actual result:
--------------
Case 1 :
Fatal error: Class 'GroupModule' not found in /www/test3.php on line 4
Case 2 :
- Works fine
Case 3 :
- Works fine
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30453&edit=1