From: zhuzhi at scxxt dot com dot cn
Operating system: linux 7.3
PHP version: 4.3.2
PHP Bug Type: FTP related
Bug description: both ftp_nlist() and ftp_rawlist() do not work!
Description:
------------
I just tried to FTP some files to a linux server with a php file. When I
tried this in local machine(W2K + apache 1.3.27 + php4.2.3), all were
right, but when I upload my scripts to the web server(RH linux 7.3 +
apache 2.0.49 + php 4.3.2) and tried it again, the scripts did nothing. I
tried to add "echo" in the scripts and I found ftp_rawlist() and
ftp_nlist() did not work at all. But all were right in my local machine!
Reproduce code:
---------------
the following is the code
<?
$conn=ftp_connect($server,$port);
ftp_login($conn,$name,$passwd);
$rawlist=array();
$nlist=array();
$rawlist=ftp_rawlist($conn,"/");
$nlist=ftp_nlist($conn,"/");
foreach($rawlist as $item) {
echo $item;
}
?>
Expected result:
----------------
so please give me some ideas of this problem ASAP,thanks. Because I need
this urgently!
--
Edit bug report at http://bugs.php.net/?id=25143&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25143&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25143&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25143&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25143&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25143&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25143&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25143&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25143&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25143&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25143&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25143&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25143&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25143&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25143&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25143&r=gnused