Can't you make sure that the filename of internal classes will be NULL and then we can check for it and say it's an internal class?
Andi At 03:59 PM 9/23/2002 +0100, Wez Furlong wrote: >X-Managedo-partname: name="1.1"; mimetype="text/plain" >Content-Type: text/plain; charset="iso-8859-1" >Content-Transfer-Encoding: 7bit > >I'm resubmitting this little patch for the ZE; when presented with >code like this: > ><?php >class Foo { >} > >class Foo { >} >?> > >The engine will generate an error message like this: > >Cannot redeclare class Foo (previously declared in file.php:2) > >Caveat Emptor: if someone tries to redeclare an internal/builtin class >such as Directory, the previous declaration will appear to be the >actual declaration in the script. I'm not sure of the best way to >resolve this. > >--Wez. > >-- >Wez Furlong >The Brain Room Ltd. > >X-Managedo-partname: name="1.2"; mimetype="text/plain" >Content-Type: text/plain >Content-Transfer-Encoding: 7bit >Content-Disposition: attachment; > filename="redclare_class.diff.txt" > >-- >PHP Development Mailing List <http://www.php.net/> >To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php