Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:1614 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48830 invoked from network); 16 May 2003 20:10:30 -0000 Received: from unknown (HELO www.lerdorf.com) (66.93.78.119) by pb1.pair.com with SMTP; 16 May 2003 20:10:30 -0000 Received: from rasmus2.corp.yahoo.com (rasmus2.corp.yahoo.com [207.126.232.175]) by www.lerdorf.com (8.12.9/8.12.9/Debian-3) with ESMTP id h4GKATjh014901 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 16 May 2003 13:10:29 -0700 Date: Fri, 16 May 2003 13:10:24 -0700 (PDT) To: Patrick Welche cc: internals@lists.php.net In-Reply-To: <20030516210843.A24047@quartz.newn.cam.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] open_basedir too strict From: rasmus@lerdorf.com (Rasmus Lerdorf) References: <20030516210843.A24047@quartz.newn.cam.ac.uk> On Fri, 16 May 2003, Patrick Welche wrote: > This may be a user error rather than an internals.. In php.ini I have > > safe_mode = Off > ;open_basedir = > ;include_path = ".:/php/includes" > > among other things, yet with cvs PHP_4_3 code from May 16 13:48, I get: > > [client 127.0.0.1] PHP Warning: main(): open_basedir restriction in effect. File(../functions/strings.php) is not within the allowed path(s): (.:/usr/local/lib/php) in /usr/src/local/squirrelmail/src/login.php on line 19 > > > I just made main/fopen_wrappers.c:php_check_open_basedir() return 0 always > to get around it.. > I was under the impression that with open_basedir commented out, it would > be NULL and therefore not "be in effect", otherwise how could you turn it > off? That's correct. You must be turning it one somewhere else. Either in another ini file or somewhere in your apache .conf files. -Rasmus