[UPHPU] Include file namespace collision detection
Sean
sean at lookin3d.com
Mon Oct 29 18:08:41 MDT 2007
I'm pretty sure php with throw a error exception if you include a file
that has a function with a name already defined. And in your example I'm
also pretty sure the first of the dually defined functions would be the
called, not the second. If you include the file with the function and
want to record the error just create a custom error handler and have it
report to you.
http://us3.php.net/set_error_handler
Cheers,
> What I'm trying to do is inspect the namespaces of included files before
> they're included, and raise exceptions (yay, PHP finally added those) if any
> detectable collisions arise.
>
--
Sean Thayne,
Exit12
More information about the UPHPU
mailing list