Re: Re: Does file_exists() 'honour' open_basedir?
| From: | David Grant | Date: | Fri, 27 Jan 2006 12:47:57 +0000 |
| Subject: | Re: Re: Does file_exists() 'honour' open_basedir? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229360@lists.php.net to get a copy of this message | ||
Hi,
Perhaps you refer to this (fixed in 4.3.3):
http://bugs.php.net/bug.php?id=24313
David
DRYALLS wrote:
> Let me try and answer my own question. I've *heard* that since PHP v4.3.2
> file_exists() returne an open_basedir warning, but earlier PHP versions did
> not. Is this true?
>
> ""DRYALLS"" <rcthelp@lineone.net> wrote in message
> news:EC.E4.06819.3D608D34@pb1.pair.com...
>> I have 2 different PHP installs, each are slightly different versions, and
>> each have different open_basedir restictions.
>>
>> I have a PHP script that fails on ONE of the installs but NOT the other.
>>
>> The line that fails is $foo = file_exists("/proc/loadavg");
>>
>> What I don't understand is why one script fails, yet the other does not
>> because NEITHER have /proc in the open_basedir path.
>>
>> What could be different about the PHP configs that makes one report a PHP
>> warning, yet the other does not?
>
--
David Grant
http://www.grant.org.uk/
http://pear.php.net/package/File_Ogg 0.2.1
http://pear.php.net/package/File_XSPF 0.1.0