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


_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to