Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.2

Bug #12854 is_file('webdav://foo/bar.txt') always returns false
Submitted: 2008-01-08 16:43 UTC
From: schmidt Assigned: hholzgra
Status: Closed Package: HTTP_WebDAV_Client (version 1.0.0)
PHP Version: 5.2.0 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 24 - 1 = ?

 
 [2008-01-08 16:43 UTC] schmidt (Christian Schmidt)
Description: ------------ is_file() uses $stat['mode'] & 0100000 to determine whether the specified path is a file or not. However, this flag is not set by HTTP_WebDAV_Client, so is_file() always returns false. AFAICT an existing file should have either the directory flag (040000) or the file flag (0100000) set (I assume that this class does not support symbolic links and other file types). See http://dk2.php.net/stat#34919 for a list of available flags.

Comments

 [2008-04-24 02:57 UTC] hholzgra (Hartmut Holzgraefe)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.