PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_FTP » Bug #5613

wrong directory output with ls

Details

Submitted2005-10-06 04:26 UTC
Fromphonophunk at gmail dot com
StatusBogus
PackageNet_FTP
PHP Version4.3.11
OSlinux
Roadmaps(Not assigned)

Comments

[2005-10-06 04:26 UTC] phonophunk at gmail dot com

Description:
------------
A server Im using outputs the following ls:

Array
(
[0] => drwxr-xr-x 2 callforabstracts (?) 4096 Oct 6 04:18 moredirshere
[1] => drwxr-xr-x 7 callforabstracts (?) 4096 Oct 6 03:45 thisisdir1
[2] => drwxr-xr-x 2 callforabstracts (?) 4096 Oct 6 04:18 thisisdir2
)

So net/ftp.php is detecting as windows eg:

Array
(
[0] => Array
(
[name] => 03:45 thisisdir1
[date] => drwxr-xr-x 7 callforabstracts (?) 4096
[is_dir] => 6
[stamp] => -1
)

[1] => Array
(
[name] => 04:18 moredirshere
[date] => drwxr-xr-x 2 callforabstracts (?) 4096
[is_dir] => 6
[stamp] => -1
)

[2] => Array
(
[name] => 04:18 thisisdir2
[date] => drwxr-xr-x 2 callforabstracts (?) 4096
[is_dir] => 6
[stamp] => -1
)

)

[2005-10-18 17:06 UTC] tiamak at goscinnawies dot pl

yeah i have the same problem.
I use Net_FTP on 4 servers
On Fedora Core3 and 4 and on Slackware 10.* everything is ok but on old Red Hat 9 it acts just like phonophunk described

[2005-10-18 17:52 UTC] tiamak at goscinnawies dot pl

ok i guess i know whats wrong :)
it is not Net_FTP fault at all.
parsing fails when you have bogus ownership for at least one file.
for example if you upload some archive then untar it and it force user:group settings and set it to some not existing user ...
... anyway chown validuser:validgroup fixed the problem :)