#39458 [Opn->Asn]: ftp_nlist returns false on empty directories
| From: | nlopess@php.net | Date: | Wed, 03 Jan 2007 18:10:37 +0000 |
| Subject: | #39458 [Opn->Asn]: ftp_nlist returns false on empty directories | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-107136@lists.php.net to get a copy of this message | ||
ID: 39458
Updated by: nlopess@php.net
Reported By: brain at eucoders dot com
-Status: Open
+Status: Assigned
Bug Type: FTP related
Operating System: Rehat Linux
PHP Version: 4.4.5-dev
Assigned To: nlopess
New Comment:
I didn't merge the patches to PHP 4..
Previous Comments:
------------------------------------------------------------------------
[2007-01-03 17:10:07] brain at eucoders dot com
The previous sequence is returning false even though the directory
exists and have 777 permissions.
------------------------------------------------------------------------
[2007-01-03 17:07:34] brain at eucoders dot com
The sequence of the code is:
ftpconnect();
echo "'";
$a=ftp_nlist($ftp_id, '/httpdocs/_site/s/5/0/3/t');
if($a===false) echo 'false';
else print_r($a);
echo "'";
ftpclose();
(ftpconnect and ftpclose are my defined functions to connect to ftp
server)
------------------------------------------------------------------------
[2007-01-03 17:06:10] brain at eucoders dot com
I installed:
php4 (tar.bz2) (4.3M) php4 (tar.gz) (5.3M)
Built On: Jan 03, 2007 15:30 GMT
but the problem still appear.
------------------------------------------------------------------------
[2006-12-01 16:38:43] nlopess@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2006-12-01 16:12:37] nlopess@php.net
OK, forget my last comment. I found a server that exibists this
behaviour (ftp.freeradius.org/pub/suse/i386).
I'll work on a patch.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/39458
--
Edit this bug report at http://bugs.php.net/?id=39458&edit=1