From:             [EMAIL PROTECTED]
Operating system: Suse linux 7.2
PHP version:      4.1.0
PHP Bug Type:     Filesystem function related
Bug description:  is_readable returns error if file does not exist.

Code example:
if (is_readable("foo")) {
    echo "file exists.<P>";
} else {
    echo "file does not exist.<P>";
}

Error message:
Warning: stat failed for foo (errno=2 - No such file or directory) in
/home/xxx/public_html/is_readable.php on line 3

Configure options:
./configure --with-apache=/home/xxx/apache_1.3.22 --with-mysql=/usr/local
--with-gd=/usr/local --with-zlib-dir=/usr/local --with-png-dir=/usr
--with-jpeg-dir=/home/xxx/jpeg-6b --with-xpm-dir=/usr/X11R6  --with-ttf 
--with-curl

Seems similar to is_file() bug. Problem does not occur on older versions
(i.e. 4.0.6).

-- 
Edit bug report at: http://bugs.php.net/?id=14424&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
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