Req #74191 [Com]: file_exists needs option to use include path
| From: | gmblar+php at gmail dot com | Date: | Mon, 31 Jul 2017 21:22:59 +0000 |
| Subject: | Req #74191 [Com]: file_exists needs option to use include path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-210438@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74191&edit=1
ID: 74191
Comment by: gmblar+php at gmail dot com
Reported by: dpfender44 at gmail dot com
Summary: file_exists needs option to use include path
Status: Open
Type: Feature/Change Request
Package: *General Issues
PHP Version: 7.1.2
Block user comment: N
Private report: N
New Comment:
try https://secure.php.net/manual/en/function.stream-resolve-include-path.php
Previous Comments:
------------------------------------------------------------------------
[2017-03-08 05:07:51] pollita@php.net
ð¤ This wouldn't actually be terribly difficult, but I have to ask: Given that it's
fairly trivial to do in userspace, what's the problem with doing it there?
------------------------------------------------------------------------
[2017-03-01 15:51:53] dpfender44 at gmail dot com
Description:
------------
It would be nice to have an option for file_exists() that would do a search using the include path.
This would allow a validity check for a file to be included with "include_once" or
"require_once". These functions use the include path to find a file. Currently, I have
programmed my own function called my_file_exists() to be used instead of file_exists() so the test
is done on all directories in the include path.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74191&edit=1