ID:               30453
 Updated by:       [EMAIL PROTECTED]
 Reported By:      guth at fiifo dot u-psud dot fr
-Status:           Open
+Status:           Assigned
 Bug Type:         Zend Engine 2 problem
 Operating System: Linux
 PHP Version:      5.0.2
-Assigned To:      
+Assigned To:      andi


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to