Date: 12/31/99
- Next message: djm <email protected>: "[PHP-DEV] PHP 4.0 Bug #3076: system and popen are ok in safe_mode, not backquotes"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #3075 Updated: inconsistency in checking include_path"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 3075
User Update by: djm <email protected>
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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: djm <email protected>: "[PHP-DEV] PHP 4.0 Bug #3076: system and popen are ok in safe_mode, not backquotes"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #3075 Updated: inconsistency in checking include_path"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

