From:             guth at fiifo dot u-psud dot fr
Operating system: Linux
PHP version:      5.0.2
PHP Bug Type:     Zend Engine 2 problem
Bug description:  php parser don't work properly (2)

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 bug report at http://bugs.php.net/?id=30453&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30453&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30453&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30453&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30453&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30453&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30453&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30453&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30453&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30453&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30453&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30453&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30453&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30453&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30453&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30453&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30453&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30453&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30453&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30453&r=mysqlcfg

Reply via email to