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

Bug #7527 ls fails if there isn't a file/directory
Submitted: 2006-04-30 17:16 UTC
From: uwelk at xhochy dot org Assigned: jorrit
Status: Closed Package: Net_FTP (version 1.3.2)
PHP Version: 5.1.2 OS: Suse Linux 9.3
Roadmaps: 1.3.3    
Subscription  


 [2006-04-30 17:16 UTC] uwelk at xhochy dot org (Uwe L. Korn)
Description: ------------ Simply if you make an ls on an empty folder you get an error: The list style of your server seems not to be supported. I use the following commands below, both return a PEAR::Error Test script: --------------- $arr1 = $connection->ls($path,NET_FTP_FILES_ONLY); $arr2 = $connection->ls($path,NET_FTP_DIRS_ONLY); Expected result: ---------------- an array with the length 0 Actual result: -------------- object(PEAR_Error)#5 (8) { ["error_message_prefix"]=> string(0) "" ["mode"]=> int(1) ["level"]=> int(1024) ["code"]=> int(-31) ["message"]=> string(208) "The list style of your server seems not to be supported. Please email a "$ftp->ls(NET_FTP_RAWLIST);" output plus info on the server to the maintainer of this package to get it supported! Thanks for your help!" ["userinfo"]=> NULL ["backtrace"]=> //not more because password should behiddeen and coming data > 1MB

Comments

 [2006-04-30 17:18 UTC] uwelk at xhochy dot org
Output from "$ftp->ls(NET_FTP_RAWLIST);" ---------------------------------------- array(1) { [0]=> string(7) "total 0" }
 [2007-03-11 10:43 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2007-03-11 10:51 UTC] uwelk at xhochy dot org
I'm not using it anymore, but I connected to a muddleftpd, version 1.3.13.1-4(on debian sarge) PS: It should work with older PHP-versions too.
 [2007-03-11 18:20 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2007-03-11 18:29 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2007-11-16 21:40 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2007-11-24 19:50 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!