PHP 4.0 Bug #3075 Updated: inconsistency in checking include_path
| From: | Bug Database | Date: | Thu, 21 Sep 2000 13:42:38 +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-33600@lists.php.net to get a copy of this message | ||
ID: 3075
Updated by: sniper
Reported By: djm@web.us.uu.net
Status: Closed
Bug Type: *General Issues
Assigned To:
Comments:
No feedback from user.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-09-02 22:54:09] sniper@php.net
Have you tried latest CVS or snapshot from http://snaps.php.net
lately?
If not, please try. And report back whether problem still exists.
--Jani
---------------------------------------------------------------------------
[2000-08-01 10:30:14] waldschrott@php.net
user feedback: still appearing
---------------------------------------------------------------------------
[2000-07-29 15:14:47] waldschrott@php.net
Please verify that it´s still happening using the latest version of PHP (release 4.0.1pl2 or CVS).
---------------------------------------------------------------------------
[1999-12-31 16:47:51] djm@web.us.uu.net
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;
}
---------------------------------------------------------------------------
[1999-12-31 16:38:15] djm@web.us.uu.net
I should also mention that I do not have include_path set, in my configuration.
Sorry the patch got mangled; netscape did that when I pasted it in.
I suggest you make the textarea box wider.
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
Full Bug description available at: http://bugs.php.net/?id=3075