ID: 6932
Updated by: heyesr
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating System: Any
PHP Version: 4.0.2
New Comment:

Maybe I should clarify, it was the filesize and file_exists function I was hoping 
would be updated to have an optional argument so they would check the include_path.

Previous Comments:
------------------------------------------------------------------------

[2001-08-12 16:00:53] [EMAIL PROTECTED]

That's nice. Doesn't solve the feature request though.

------------------------------------------------------------------------

[2001-08-12 15:25:02] [EMAIL PROTECTED]

according to the docs: int fopen (string filename, string mode [, int
use_include_path])

------------------------------------------------------------------------

[2000-09-29 02:08:42] [EMAIL PROTECTED]

Currently filesize and file_exists (possibly other, these are two I know of) don't 
appear to support an extra argument like fopen does to make use of the include_path. 
So the following code would fail if the file is in the include_path:

$file = fread($fp = fopen($filename, 'r', 1), filesize($filename));
fclose($fp);

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=6932&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to