#6932 [Com]: Filesize / File_exists and include_path
| From: | sr at brightlight dot ch | Date: | Thu, 30 Jun 2005 17:16:07 +0000 |
| Subject: | #6932 [Com]: Filesize / File_exists and include_path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81231@lists.php.net to get a copy of this message | ||
ID: 6932
Comment by: sr at brightlight dot ch
Reported By: richard dot heyes at heyes-computing dot net
Status: Open
Bug Type: Feature/Change Request
Operating System: Any
PHP Version: 4.0.2
New Comment:
I second this request.
Open since 5 years, since PHP5's autoload even more important
and not even yet assigned... :-/
Previous Comments:
------------------------------------------------------------------------
[2002-06-04 09:13:56] mfischer@php.net
Any objection not to add this?
------------------------------------------------------------------------
[2001-08-12 16:32:09] heyesr@php.net
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.
------------------------------------------------------------------------
[2001-08-12 16:00:53] heyesr@php.net
That's nice. Doesn't solve the feature request though.
------------------------------------------------------------------------
[2001-08-12 15:25:02] sebastian@php.net
according to the docs: int fopen (string filename, string mode [, int
use_include_path])
------------------------------------------------------------------------
[2000-09-29 02:08:42] richard dot heyes at heyes-computing dot net
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