PHP 4.0 Bug #3075 Updated: inconsistency in checking include_path

From: Date: Thu, 21 Sep 2000 15:22:57 +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-33599@lists.php.net to get a copy of this message
ID: 3075 User Update by: djm@web.us.uu.net Old-Status: Closed Status: Open Bug Type: *General Issues Description: inconsistency in checking include_path Replying to the bug mail fails with "no route to host" for va.php.net, so I'll try posting my reply here. Why don't the PHP developers check for themselves whether the problem is still there? I'm tired of having to report PHP bugs 2 or 3 times because the developers wait 8 months before dealing with them. You can read the code or diff it against the version I reported the bug in as well as I can. I gave a precise analysis of the problem, which you should be able to understand. You can see the on 08/01 I reported that the current version still had the problem. Do you really want me to resubmit the bug report every month until it gets fixed? Previous Comments: --------------------------------------------------------------------------- [2000-09-21 09:42:38] sniper@php.net No feedback from user. --Jani --------------------------------------------------------------------------- [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; } --------------------------------------------------------------------------- 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

« previous php.dev (#33599) next »