Re: 4.1.0 and is_file

From: Date: Wed, 12 Dec 2001 18:34:03 +0000
Subject: Re: 4.1.0 and is_file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-77462@lists.php.net to get a copy of this message
It looks like it is a fixed bug. From PHP-DEV (today): > ID: 14424 > Updated by: sander > Reported By: jm@tv3ooo.nl > Status: Open > Old Bug Type: Filesystem function related > Bug Type: Documentation problem > Operating System: Suse linux 7.2 > PHP Version: 4.1.0 > New Comment: > > So what's the problem? is_readable now returns an error, which is IMHO fine. The only > problem is that it's not documented. Changing to docu prob. > He's right, this really shouldn't be -- its been fixed in HEAD its just not in 4.1.0... -Sterling > Previous Comments: > ------------------------------------------------------------------------ > > [2001-12-11 08:22:39] jm@tv3ooo.nl > > 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). ----- Original Message ----- From: "Brian Paulson" <bpaulson@chieftain.com> To: <php-general@lists.php.net> Sent: Wednesday, December 12, 2001 9:17 PM Subject: [PHP] 4.1.0 and is_file > This morning after I got 4.1.0 installed and running I started getting > the following warning where I used is_file to check to see if a file was > present. > > Warning: stat failed for /gallery/pictures/.desc (errno=2 - No such file > or directory) in /gallery/index.php on line 451 > > Has any one else had this problem? > > > Thank You > Brian Paulson > Sr. Web Developer > bpaulson@chieftain.com > http://www.chieftain.com > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#77462) next »