#34164 [NEW]: Cannot view the directory list by using ftp_rawlist function
| From: | thomas188 at hotmail dot com | Date: | Wed, 17 Aug 2005 05:30:37 +0000 |
| Subject: | #34164 [NEW]: Cannot view the directory list by using ftp_rawlist function | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-83670@lists.php.net to get a copy of this message | ||
From: thomas188 at hotmail dot com
Operating system: Linux
PHP version: 4.4.0
PHP Bug Type: FTP related
Bug description: Cannot view the directory list by using ftp_rawlist function
Description:
------------
When I use the ftp_rawlist, the output is empty when the path contains
"[". For example, "/tmp/[test]". But others is OK. Please help !
Reproduce code:
---------------
// set up basic connection
$conn_id = ftp_connect("x.x.x.x");
// login with username and password
$login_result = ftp_login($conn_id, "username", "password");
// get contents of the current directory
$contents = ftp_rawlist($conn_id, "/tmp/[test]");
//output
var_dump($contents);
--
Edit bug report at http://bugs.php.net/?id=34164&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34164&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34164&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34164&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34164&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34164&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34164&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34164&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34164&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34164&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34164&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34164&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34164&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34164&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34164&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34164&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34164&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34164&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34164&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34164&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34164&r=mysqlcfg