From:             [EMAIL PROTECTED]
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 ?


Paul Gregg
(Hacking in support for DOCUMENT_ROOT as another "specical case")

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to