I have a problem in some real code which I have distilled down to the essentials below. Yes there is a circular reference, but right now I can't see another way of doing it.
// File a.php
<?php
require_once 'c.php';
class a { }
?>
// File b.php
<?php
require_once 'a.php';
class b extends a { }
?>
// File c.php
<?php
require_once 'b.php';
class c extends b { }
?>
If you load file a, all is well.
If you load file c, all is well.
If you load file b, you get a fatal error "Class b not found in c.php".
Can anybody help?
regards
allanric