Posted by Paul Czubilinski on 05/07/06 14:58
Hi Chung,
I tried to simplify the problem as much as possible and it goes as
follow:
This works
========
class B { ... }
$a = new A();
class A extends B {...}
This doesn't work
==========
file A.php
-------------
include('B.php');
$a = new A();
class A extends B {....}
file B.php
------------
class B { ... }
================
I understand that in the second example A cannot be defined in the
compile mode because there is no B definition however during runtime
the first line includes B definition and I cannot find the reason it
cannot define A.
Paul
Navigation:
[Reply to this message]
|