Req #74191 [Opn->Wfx]: file_exists needs option to use include path

From: Date: Wed, 09 Dec 2020 17:46:47 +0000
Subject: Req #74191 [Opn->Wfx]: file_exists needs option to use include path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230975@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 Updated by: cmb@php.net Reported by: dpfender44 at gmail dot com Summary: file_exists needs option to use include path -Status: Open +Status: Wont fix Type: Feature/Change Request Package: *General Issues PHP Version: 7.1.2 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: I can't see a single good reason for adding this functionality; besides that it can easily be implemented in userland, it still doesn't prevent potential race conditions. If you feel strongly that it would be a useful addition, please forward the request to the internals mailing list. Previous Comments: ------------------------------------------------------------------------ [2017-07-31 21:22:58] gmblar+php at gmail dot com try https://secure.php.net/manual/en/function.stream-resolve-include-path.php ------------------------------------------------------------------------ [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

« previous php.bugs (#230975) next »