ID:               46485
 User updated by:  nyaka at nyaka dot com
 Reported By:      nyaka at nyaka dot com
 Status:           Bogus
 Bug Type:         Apache2 related
 Operating System: Solaris 10
 PHP Version:      5.2.6
 New Comment:

I can see the correct boundary at the end of the packet in the TCP
dump.


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

[2008-11-04 22:49:56] [EMAIL PROTECTED]

The error code is set when the POST handler did not found the final
boundary in the client's input. This may happen when the boundary is
effectively missing, or e.g. when the Content-Length is incorrect.

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

[2008-11-04 22:19:56] nyaka at nyaka dot com

Yes, it is exactly what happened - some part of your code thinks that
there is an error. So to summarize:
1. Custom application sends the file.
2. TCP dump shows the file is transferred.
3. Trace shows that the temporary file is created and data written to
it.
4. PHP deletes the temporary file.
5. PHP reports error 3 - (partial upload).

As I said, absolutely the same scenario works with previous versions of
Apache and PHP. So the file was transferred; why does PHP complain?

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

[2008-11-04 22:01:33] [EMAIL PROTECTED]

On error the temp file is deleted before the PHP script is executed.
When no error, the temp file is deleted after the PHP script is
executed.

Is this not what happens for you ?

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

[2008-11-04 21:53:20] nyaka at nyaka dot com

I understand that POST handler deletes temporary file, but should it
delete if AFTER the actual php script is executed? The temporary file
cannot be accessed from the php script. It is visible from the trace I
provided and from dump of $_FILES variable.

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

[2008-11-04 21:45:09] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

> [error] => 3

On error, the POST handler deletes the temporary file.
Please see http://www.php.net/manual/en/features.file-upload.php

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/46485

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

Reply via email to