ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> phpdoc
phpdoc
[PHP-DOC] #14424 [Com]: is_readable returns error if file does not exist.
by other posts by this author
Aug 27 2002 9:04PM messages near this date
[PHP-DOC] #14424 [Com]: is_readable returns error if file does not exist. | [PHP-DOC] Bug #14424 Updated: is_readable returns error if file does not exist.
ID:               14424
 Comment by:       cvb@[...].de
 Reported By:      jm@[...].nl
 Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Suse linux 7.2
 PHP Version:      4.1.0
 New Comment:

We encoutered this bug yesterday.

Suse linux 8.0 is using PHP 4.1.0 and so this bug applies here I
think.

Since it was fixed in 4.1.2 (or 4.1.1) I think anyone who encounters
this bug should upgrade.

Best regards,
ClausVB


Previous Comments:
------------------------------------------------------------------------

[2001-12-12 15:21:16] goba@[...].net

This is what we call an accidental problem. Things like
this can happen in such a big project as PHP.

Goba

------------------------------------------------------------------------

[2001-12-12 11:37:37] sniper@[...].net

This is fixed in CVS long time ago. The change didn't make it to 4.1.0
though. 

--Jani


------------------------------------------------------------------------

[2001-12-12 10:17:27] jm@[...].nl

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] sander@[...].net

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] jm@[...].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).


------------------------------------------------------------------------


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


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:











Sterling Hughes
Sterling Hughes
Mike Rogers
Sterling Hughes

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved