cvs: pear /HTTP_WebDAV_Client/Tools _parse_propfind_response.php
[email protected] ("Hartmut Holzgraefe")
| Newsgroups | php.pear.cvs |
|---|---|
| Message-ID | <cvshholzgra1209005857@cvsserver> |
hholzgra Thu Apr 24 02:57:37 2008 UTC
Modified files:
/pear/HTTP_WebDAV_Client/Tools _parse_propfind_response.php
Log:
fix for pear bug #12854 "is_file('webdav://foo/bar.txt') always returns false"
http://cvs.php.net/viewvc.cgi/pear/HTTP_WebDAV_Client/Tools/_parse_propfind_response.php?r1=1.4&r2=1.5&diff_format=u
Index: pear/HTTP_WebDAV_Client/Tools/_parse_propfind_response.php
diff -u pear/HTTP_WebDAV_Client/Tools/_parse_propfind_response.php:1.4 pear/HTTP_WebDAV_Client/Tools/_parse_propfind_response.php:1.5
--- pear/HTTP_WebDAV_Client/Tools/_parse_propfind_response.php:1.4 Tue Jan 8 16:05:10 2008
+++ pear/HTTP_WebDAV_Client/Tools/_parse_propfind_response.php Thu Apr 24 02:57:37 2008
@@ -41,7 +41,7 @@
switch ($tag) {
case 'propstat':
// TODO check is_executable, lockinfo ...
- $this->_tmpprop = array("mode" => 0666 /* all may read and write (for now) */);
+ $this->_tmpprop = array("mode" => 0100666 /* all may read and write (for now) */);
break;
}
}
@@ -109,7 +109,8 @@
case '5':
switch ($tag) {
case 'collection':
- $this->_tmpprop['mode'] |= 040000; // S_IFDIR
+ $this->_tmpprop['mode'] &= ~0100000; // clear S_IFREG
+ $this->_tmpprop['mode'] |= 040000; // set S_IFDIR
break;
}
}