From:             hellfire at fastq dot com
Operating system: solaris 8
PHP version:      4.3.10
PHP Bug Type:     FTP related
Bug description:  ftp_rawlist doesn't return file owner

Description:
------------
On Solaris 8 with php 4.3.10-5.03 when you try to use the ftp_rawlist
command against a wuftpd server version wu-2.6.2 doesn't return the file
owner.

bash-2.03# ./ftptest.php
array(5) {
  [0]=>
  string(9) "total 142"
  [1]=>
  string(55) "-rw-r--r--   1 other      14162 Jan 31 16:37 Hawaii.pdf"
  [2]=>
  string(57) "-rw-r--r--   1 other       4595 Feb  1 12:04 Podholes.txt"
  [3]=>
  string(72) "-rw-r--r--   1 other      51370 Feb  1 12:18
ReactionPaperGuidelines.pdf"
  [4]=>
  string(54) "drwxr-xr-x   2 other        512 Feb  2 09:45 juliotest"
}

If I run the code against a vsftpd server i get the file owner reported.

bash-2.03# ./ftptest.php
array(1) {
[0]=>
  string(65) "drwxr-xr-x    5 1000     100          1912 Jan 25 01:27
Documents"
}


I verified that this isn't a wuFTPD issue
ftp> ls -l
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 1093912
drwxr-xr-x   4 bobdobbs its          512 Dec 21 12:48 CA
-rw-r--r--   1 root     root     15156736 Jan 13 15:28
UHFreeradius-1.01.sol8

Notice the file owner is listed I started wi wuftpd2.6.1 but updated to
wuftp 2.6.2 to see if it was an wuftp issue but it appears to only be a
php issue.  I verified this against multiple Solaris 8 wuftp servers they
all seem to give the same results.

-Aaron Collins
Developer for the University of Hawaii

Reproduce code:
---------------
#!/usr/local/bin/php
<?php
$ftp_server = "localhost";
$ftp_user_name = "bobdobbs";
$ftp_user_pass = "***";
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
$buff = ftp_rawlist($conn_id, '');
ftp_close($conn_id);
var_dump($buff);
?>


-- 
Edit bug report at http://bugs.php.net/?id=31823&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31823&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31823&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31823&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31823&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31823&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31823&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31823&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31823&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31823&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31823&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31823&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31823&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31823&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31823&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31823&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31823&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31823&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31823&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31823&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31823&r=mysqlcfg

Reply via email to