Date: 05/18/01
- Next message: Jeroen: "[PHP-DEV] Some more 'Bug or features'"
- Previous message: Rasmus Lerdorf: "Re: [PHP-DEV] mmap in php_passthru_fd in file.c ?"
- Next in thread: Jeroen: "[PHP-DEV] Some more 'Bug or features'"
- Reply: Jeroen: "[PHP-DEV] Some more 'Bug or features'"
- Reply: Egan: "Re: [PHP-DEV] Bug #10960: coding error in fopen_wrappers.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: egan <email protected>
Operating system: Linux
PHP version: 4.0.5
PHP Bug Type: PHP options/info functions
Bug description: coding error in fopen_wrappers.c
>From previous bug report 10322 submitted by Paul Gregg:
In main/fopen_wrappers.c I see that there is a function:
PHPAPI int php_check_specific_open_basedir(char *basedir, char *path PLS_DC)
However "basedir" is never used in this function at all,
only PG(open_basedir). Surely this negates the point of the function being > called individually for each tokenised entry on open_basedir/php.ini?
--- end of bug report 10322
Although Paul was correct, "Jason Greene" <jason <email protected>> marked his report as bogus, apparently because it was included as part of a larger patch which Jason claimed was plagarizing his (Jason's) earlier patch, and Jason did not notice the one-line correction dealing with the logical error.
Paul's report of the logical error was not bogus, and his one-line correction was obviously correct. Here it is again:
--- fopen_wrappers.c.orig Mon Feb 26 00:07:31 2001
+++ fopen_wrappers.c Fri May 18 12:40:54 2001
@@ -147,7 +147,7 @@
SLS_FETCH();
/* Special case basedir==".": Use script-directory */
- if ((strcmp(PG(open_basedir), ".") == 0) &&
+ if ((strcmp(basedir), ".") == 0) &&
SG(request_info).path_translated &&
*SG(request_info).path_translated
) {
-- Edit Bug report at: http://bugs.php.net/?id=10960&edit=1-- 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: Jeroen: "[PHP-DEV] Some more 'Bug or features'"
- Previous message: Rasmus Lerdorf: "Re: [PHP-DEV] mmap in php_passthru_fd in file.c ?"
- Next in thread: Jeroen: "[PHP-DEV] Some more 'Bug or features'"
- Reply: Jeroen: "[PHP-DEV] Some more 'Bug or features'"
- Reply: Egan: "Re: [PHP-DEV] Bug #10960: coding error in fopen_wrappers.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

