Re: [PHP-DEV] Bug #10960: coding error in fopen_wrappers.c From: Egan (egan <email protected>)
Date: 05/18/01

On 18 May 2001 18:12:38 -0000, egan <email protected> wrote:

>--- 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
> ) {
>
>

Whoops! Left in an extra paren. The fix should be:

>+ if ((strcmp(basedir, ".") == 0) &&
 

-- 
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>