I agree with Wez, what if you are searching for a file with a relative file path, e.g:
<?php if (file_exists("somefile.php")) // ...
would return true if "somefile.php" is not in the current directory but is in your include path, not what you expected. Besides, you can easily implement this functionality in php.
its going to be optional, not mandatory ... but that has already been answered
the whole point about this additional feature is that you can use it to check for include file existance before the actual include:
if (file_exists("somefile.php", true)) { include "somefile.php"; }
IMHO this case is common enough so that it deserves a native C implementation either as an option to file_exists() or as a seperate function like file_exists_in_path()
-- Hartmut Holzgraefe <[EMAIL PROTECTED]>
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php