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

From: Date: Wed, 08 Mar 2017 05:07:53 +0000
Subject: Req #74191 [Opn]: file_exists needs option to use include path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207740@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: pollita@php.net 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: 🤔 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? Previous Comments: ------------------------------------------------------------------------ [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 (#207740) next »