Bug #10322: Logical error in fopen-wrappers.c
| From: | php-bugrep at pgregg dot com | Date: | Fri, 13 Apr 2001 22:52:07 +0000 |
| Subject: | Bug #10322: Logical error in fopen-wrappers.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51555@lists.php.net to get a copy of this message | ||
From: php-bugrep@pgregg.com
Operating system: All
PHP version: 4.0.4pl1
PHP Bug Type: PHP options/info functions
Bug description: Logical error in fopen-wrappers.c
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? I think it will only match, ever, on the first entry in the config file.
So, should all references to PG(open_basedir) in php_check_specific_open_basedir() be replaced with
the arg basedir ?
Thanks,
Paul Gregg
(Hacking in support for DOCUMENT_ROOT as another "specical case")
--
Edit Bug report at: http://bugs.php.net/?id=10322&edit=1