ID: 25347 Comment by: manu at agat dot net Reported By: spam at come dot no-ip dot com Status: Bogus Bug Type: FTP related Operating System: Windows XP Pro PHP Version: 4.3.3 New Comment:
little update: After debugging more my program, I saw in tcpdump that no "LIST" was send to server. In fact I was using mdtm() before, but on some server mdtm isn't supported. A 500 error is reported, but it seems to block the next request. The bug is inside the php-ftp library. Previous Comments: ------------------------------------------------------------------------ [2003-09-02 10:55:28] manu at agat dot net I have the same problem on linux. probably not related to TEMP directory, as, for some ftp, the command works, and for other, it don't works. try: ftp.u-strasbg.fr (works) ftp.lip6.fr (don't works) ------------------------------------------------------------------------ [2003-09-02 08:36:11] [EMAIL PROTECTED] You need to give it write permissions to TEMP directory. Whatever it is in your system.. ------------------------------------------------------------------------ [2003-09-01 22:24:53] spam at come dot no-ip dot com yes, probably the problem is permissions...but I've tryed add to my user read/write permissions to temp folder and sessions (the ones that set in php.ini) still no luck. I was following installation guide from apache package, that describes what folders needs to be set the permissions, also set php installation folder to be full control for my apache user, same thing. I'm running out of ideas on what else permission I could set up... P.S. I'm trying not to use any system folders neither for temp files nor for .ini settings, that makes less painless reinstalling system or upgrading software. I even tryed give full control and changed ownership to apache user on all folders that have any relationship to the apache+php. ------------------------------------------------------------------------ [2003-09-01 21:17:07] [EMAIL PROTECTED] ftp_nlist and ftp_rawlist require the ability to create a temporary file. The user you are running as does not have write premission to your TEMP directory. This is not a bug in ext/ftp, this is a configuration issue. Make sure whoever you're running Apache as has read/write/erase permissions in your system's temp directory. ------------------------------------------------------------------------ [2003-09-01 16:26:56] spam at come dot no-ip dot com Description: ------------ I know there are atleast few bug submittions but they are closed while the problem is still remain. I run Apache2 as "apache" user that is member of "USERS" group. ftp_rawlist() function returns nothing. I've checked my FTP logs and all I can see that PHP logs into FTP server and does not sends LIST command. Windows XP Pro on NTFS + Apache2 + PHP4.3.3 as SAPI module Reproduce code: --------------- <?php $conn = ftp_connect("ftp.symantec.com"); ftp_login($conn,"anonymous","[EMAIL PROTECTED]"); $nlist = ftp_nlist($conn, ""); $rawlist = ftp_rawlist($conn, ""); echo "<pre>"; echo "Values from ftp_nlist()<BR>"; print_r($nlist); echo "Values from ftp_rawlist()<BR>"; print_r($rawlist); echo "</pre>"; ?> Expected result: ---------------- List of the dirs Actual result: -------------- nothing ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25347&edit=1