#28865 [Opn]: Functions ftp_*list
| From: | 336764 at 163 dot com | Date: | Wed, 23 Jun 2004 01:37:40 +0000 |
| Subject: | #28865 [Opn]: Functions ftp_*list | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-61290@lists.php.net to get a copy of this message | ||
ID: 28865
User updated by: 336764 at 163 dot com
Reported By: 336764 at 163 dot com
Status: Open
Bug Type: FTP related
Operating System: MandRake 10
PHP Version: 5.0.0RC3
Assigned To: pollita
New Comment:
PHP5 Environment variable:
TMPDIR is /root/tmp
How to change it ?
Previous Comments:
------------------------------------------------------------------------
[2004-06-23 03:21:59] 336764 at 163 dot com
bool(false)
------------------------------------------------------------------------
[2004-06-21 17:59:11] pollita@php.net
What does the ouput of this show?
var_dump(tmpfile());
------------------------------------------------------------------------
[2004-06-21 09:39:35] 336764 at 163 dot com
Description:
------------
Warning: ftp_nlist() [function.ftp-nlist]: Unable to create temporary
file. Check permissions in temporary files directory. in
/web/browse.inc.php on line 181
Warning: ftp_rawlist() [function.ftp-nlist]: Unable to create temporary
file. Check permissions in temporary files directory. in
/web/browse.inc.php on line 181
/tmp is chmod 777 and other temporary directory is 777 too.
Reproduce code:
---------------
$rawlist = ftp_rawlist($conn_id, "-a");
$rawlist = ftp_rawlist($conn_id, "");
$rawlist = ftp_nlist($conn_id, "-a");
$rawlist = ftp_nlist($conn_id, "");
Expected result:
----------------
Warning: ftp_nlist() [function.ftp-nlist]: Unable to create temporary
file. Check permissions in temporary files directory.
/web/browse.inc.php on line 181
Actual result:
--------------
list all files to array.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28865&edit=1