Req #26436 [Fbk->NoF]: user temp dir in call to ftp_rawlist()

From: Date: Tue, 30 Dec 2014 10:41:25 +0000
Subject: Req #26436 [Fbk->NoF]: user temp dir in call to ftp_rawlist()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189371@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: php-bugs@lists.php.net Reported by: PaulMenard1 at Yahoo dot com Summary: user temp dir in call to ftp_rawlist() -Status: Feedback +Status: No Feedback Type: Feature/Change Request Package: FTP related Operating System: Windows 2000 Adv. Server PHP Version: 4.3.3 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2014-04-17 14:26:27] levim@php.net Is this something you are still interested in? ------------------------------------------------------------------------ [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

« previous php.bugs (#189371) next »