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)    

 [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 for a list of available flags.


 [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 by the end of next Sunday (CET). If this was a problem with the 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.