Req #26436 [Opn->Fbk]: user temp dir in call to ftp_rawlist()
| From: | levim@php.net | Date: | Thu, 17 Apr 2014 14:26:27 +0000 |
| Subject: | Req #26436 [Opn->Fbk]: user temp dir in call to ftp_rawlist() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185325@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=26436&edit=1
ID: 26436
Updated by: levim@php.net
Reported by: PaulMenard1 at Yahoo dot com
Summary: user temp dir in call to ftp_rawlist()
-Status: Open
+Status: Feedback
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: FTP related
Operating System: Windows 2000 Adv. Server
PHP Version: 4.3.3
Block user comment: N
Private report: N
New Comment:
Is this something you are still interested in?
Previous Comments:
------------------------------------------------------------------------
[2003-11-27 13:56:52] PaulMenard1 at Yahoo dot com
Description:
------------
I have read through the already reported buglist about common problems getting
ftp_rawlist()/ftp_nlist() returning nothing. I am having the same issue.
First some configuration notes:
Server: windows 2000 Advanced Server with all the lates patches.
PHP: Version 4.3.3 running as CGI.
My server is primarily used as an FTP server using the FTP services of IIS 5. I provide a Web page
in PHP to also allow pass-through FTP for certain account that are trapped behind the corporate
firewall. The IIS is setup to use Basic Authentication.
So does this mean the PHP.exe is executed as the authenticated user instead of the default IIS user?
After tracing through the source code I found what I think is my issue.
In the code module php-4.3.3\ext\ftp\ftp.c the function ftp_genlist() first calls
if ((tmpfp = tmpfile()) == NULL)
return NULL;
In some of the other post here there was mention of verifying that the use has full permission on
the TEMP folder. After checking phpinfo via a non-admin use I have verified that the TEMP & TMP
folder on my system 'C:\WinNT\TEMP\' has full permissions for everyone.
To test this I changed the line in the PHP ftp.c code to not use tmpfile() but instead to use a
hard-coded folder. I recompiled PHP and tested. This seemed to work great.
So what are the chances of getting an optional argument added to the ftp_rawlist() function?
Something like the ftp_fget second parameter resource handle.
Paul
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=26436&edit=1