ID:               42825
 Updated by:       [EMAIL PROTECTED]
 Reported By:      christopher dot graham at digforfire dot co dot uk
-Status:           Open
+Status:           Feedback
 Bug Type:         CGI related
 Operating System: Windows Server 2003
 PHP Version:      5.2.4
 New Comment:

I think it actually does already have such notice if tmpdir is not
writable. Make sure you have error_reporting/display_errors setup so
that you can see all errors.


Previous Comments:
------------------------------------------------------------------------

[2007-10-02 12:38:58] christopher dot graham at digforfire dot co dot
uk

I've just tested and I was able to write into this directory from the
same HTTPauth user that I've been having the problem with.

I think your question was rhetorical, but even so, I would think
something like a PHP_NOTICE would help. If not this at least some kind
of feedback from PHP would be helpful IMHO, to be able to trace the
problem rather than guess at potential causes.
I'm just trying to be helpful here and get the information to help the
problem be fixed in case others stumble upon it.

------------------------------------------------------------------------

[2007-10-02 12:23:46] [EMAIL PROTECTED]

>This is likely somehow related to how the CGI process will be
>executed under a different username to usual.

So it's just a permissions issue, isn't it?

>phpinfo returns the correct upload_tmp_dir even though the tmp files 
>are not actually put there; I tested this on the same page request as

>seeing the tmp path as being incorrect.

Well, if it can't put the files there because of wrong permissions,
what would you expect it to do?

------------------------------------------------------------------------

[2007-10-02 11:57:49] christopher dot graham at digforfire dot co dot
uk

It's a standard CGI install of the latest PHP maintenance release, on
IIS (Windows Server 2003).
The authentication involved on this domain is standard IIS installation
that happens when 'Anonymous Access' is turned off (i.e. you log in, via
HTTPauth, using the credentials of a valid system user - PHP then runs
as that user).

------------------------------------------------------------------------

[2007-10-02 11:17:32] [EMAIL PROTECTED]

You give very little info how you've setup PHP but I'm guessing it's
under IIS as CGI (or FastCGI?) ? If it's CGI/FastCGI, plase change the
category accordingly. The "IIS Related" is for the ISAPI SAPI.

------------------------------------------------------------------------

[2007-10-02 09:46:56] christopher dot graham at digforfire dot co dot
uk

Description:
------------
If we turn off 'Anonymous Access' for a domain on IIS (so we have to
log in via HTTP-auth), we find that file uploads are saved under a path
other than what upload_tmp_dir specifies.
This is likely somehow related to how the CGI process will be executed
under a different username to usual.
phpinfo returns the correct upload_tmp_dir even though the tmp files
are not actually put there; I tested this on the same page request as
seeing the tmp path as being incorrect.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42825&edit=1

Reply via email to