PHP 4.0 Bug #3075 Updated: inconsistency in checking include_path
| From: | Bug Database | Date: | Fri, 31 Dec 1999 21:47:51 +0000 |
| Subject: | PHP 4.0 Bug #3075 Updated: inconsistency in checking include_path | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14170@lists.php.net to get a copy of this message | ||
ID: 3075
User Update by: djm@web.us.uu.net
Status: Open
Bug Type: Misbehaving function
Description: inconsistency in checking include_path
Here's a slightly more efficient patch for preventing relative paths from being searched for in
include_path.
@@ -315,9 +315,10 @@
if (opened_path) {
*opened_path = NULL;
}
- /* Relative path open; never use path */
- if ((filename[0] == '.' && filename[1] == '/')
- || (filename[0] == '.' && filename[1] == '.' &&
filename[2] == '/')) {
+ /* Relative path; do not search for the file in "path" */
+ if (filename[0] == '.' &&
+ (filename[1] == '/'
+ || (filename[1] == '.' && filename[2] == '/'))) {
if (PG(safe_mode) && (!_php3_checkuid(filename, cm))) {
return NULL;
}
Full Bug description available at: http://bugs.php.net/version4/?id=3075