Hehe, shut down Lukas. I'd love to know why file_exists doesn't search the include path like every other file function
"Derick Rethans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 8 May 2004, Lukas Smith wrote: > > > I think it would be useful if require would throw an exception on failure. > > NO! Internal functions do NOT throw exceptions, period. > > > By throwing an exception inside require with the necessary information > > it would be able to cleanly handle this situation without having to > > silence this error and then parsing the error message. And it would > > obviously be BC compatible as uncaught exceptions are fatal. > > A require should fail if it can't find the file, no nice handling as > it's CLEARLY a programmers error. > > regards, > Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php