From:             PaulMenard1 at Yahoo dot com
Operating system: Windows 2000 Adv. Server
PHP version:      4.3.3
PHP Bug Type:     Feature/Change Request
Bug description:  user temp dir in call to ftp_rawlist()

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 bug report at http://bugs.php.net/?id=26436&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26436&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26436&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26436&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26436&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26436&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=26436&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=26436&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26436&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26436&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26436&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26436&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26436&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26436&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26436&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26436&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26436&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26436&r=float

Reply via email to