cvs: pear /Net_FTP generate_package_xml.php /Net_FTP/Net FTP.php
[email protected] ("Jorrit Schippers")
| Newsgroups | php.pear.cvs |
|---|---|
| Message-ID | <cvsjschippers1208897494@cvsserver> |
jschippers Tue Apr 22 20:51:34 2008 UTC
Modified files:
/pear/Net_FTP/Net FTP.php
/pear/Net_FTP generate_package_xml.php
Log:
Bug #13690: getRecursive does not work because of '.' and '..' directories
http://cvs.php.net/viewvc.cgi/pear/Net_FTP/Net/FTP.php?r1=1.63&r2=1.64&diff_format=u
Index: pear/Net_FTP/Net/FTP.php
diff -u pear/Net_FTP/Net/FTP.php:1.63 pear/Net_FTP/Net/FTP.php:1.64
--- pear/Net_FTP/Net/FTP.php:1.63 Tue Apr 22 20:41:27 2008
+++ pear/Net_FTP/Net/FTP.php Tue Apr 22 20:51:33 2008
@@ -20,7 +20,7 @@
* @author Jorrit Schippers <[email protected]>
* @copyright 1997-2008 The PHP Group
* @license http://www.php.net/license/3_0.txt PHP License 3.0
- * @version CVS: $Id: FTP.php,v 1.63 2008/04/22 20:41:27 jschippers Exp $
+ * @version CVS: $Id: FTP.php,v 1.64 2008/04/22 20:51:33 jschippers Exp $
* @link http://pear.php.net/package/Net_FTP
* @since File available since Release 0.0.1
*/
@@ -1036,7 +1036,7 @@
$mode = NET_FTP_DIRS_ONLY;
$dir_list = $this->ls($remote_path, $mode);
foreach ($dir_list as $dir_entry) {
- if ($dir_entry == '.' || $dir_entry == '..') {
+ if ($dir_entry['name'] == '.' || $dir_entry['name'] == '..') {
continue;
}
@@ -1584,8 +1584,8 @@
$this->cd($old_path);
$dir_list = $this->_lsLocal($local_path);
foreach ($dir_list["dirs"] as $dir_entry) {
- $remote_path_new = $remote_path.$dir_entry."/";
- $local_path_new = $local_path.$dir_entry."/";
+ $remote_path_new = $remote_path.$dir_entry['name']."/";
+ $local_path_new = $local_path.$dir_entry['name']."/";
$result = $this->putRecursive($local_path_new,
$remote_path_new, $overwrite, $mode);
if ($this->isError($result)) {
http://cvs.php.net/viewvc.cgi/pear/Net_FTP/generate_package_xml.php?r1=1.20&r2=1.21&diff_format=u
Index: pear/Net_FTP/generate_package_xml.php
diff -u pear/Net_FTP/generate_package_xml.php:1.20 pear/Net_FTP/generate_package_xml.php:1.21
--- pear/Net_FTP/generate_package_xml.php:1.20 Tue Apr 22 20:41:27 2008
+++ pear/Net_FTP/generate_package_xml.php Tue Apr 22 20:51:34 2008
@@ -17,7 +17,7 @@
* @author Tobias Schlitt <[email protected]>
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt PHP License 3.0
- * @version CVS: $Id: generate_package_xml.php,v 1.20 2008/04/22 20:41:27 jschippers Exp $
+ * @version CVS: $Id: generate_package_xml.php,v 1.21 2008/04/22 20:51:34 jschippers Exp $
* @link http://pear.php.net/package/Net_FTP
* @since File available since Release 1.3.0
*/
@@ -57,7 +57,9 @@
$current_notes =
'* Fixed Bug #13496: set bit not supported
-* Fixed Bug #13689: . in file owner or group name breaks _ls_match';
+* Fixed Bug #13689: . in file owner or group name breaks _ls_match
+* Fixed Bug #13690: getRecursive does not work because of \'.\' and \'..\' '.
+'directories';
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'dumpError');