[PHP-DEV] Bug #14424 Updated: is_readable returns error if file does not exist.
ID: 14424 Updated by: sander Reported By: [EMAIL PROTECTED] 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. Previous Comments: [2001-12-11 08:22:39] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=14424edit=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]
Re: [PHP-DEV] Bug #14424 Updated: is_readable returns error if file does not exist.
ID: 14424 Updated by: sander Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=14424edit=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] -- 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]
[PHP-DEV] Bug #14424 Updated: is_readable returns error if file does not exist.
ID: 14424 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Documentation problem Operating System: Suse linux 7.2 PHP Version: 4.1.0 New Comment: So that is what you call downwards compatible? I build a site under 4.0.6, it works fine. There is an update to PHP, my sites break. Previous Comments: [2001-12-12 06:40:15] [EMAIL PROTECTED] 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. [2001-12-11 08:22:39] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=14424edit=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]
[PHP-DEV] Bug #14424 Updated: is_readable returns error if file does not exist.
ID: 14424 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Documentation problem Operating System: Suse linux 7.2 PHP Version: 4.1.0 New Comment: This is fixed in CVS long time ago. The change didn't make it to 4.1.0 though. --Jani Previous Comments: [2001-12-12 10:17:27] [EMAIL PROTECTED] So that is what you call downwards compatible? I build a site under 4.0.6, it works fine. There is an update to PHP, my sites break. [2001-12-12 06:40:15] [EMAIL PROTECTED] 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. [2001-12-11 08:22:39] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=14424edit=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]