php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11118 Fileupload functionality do not comply to RFC2616
Submitted: 2001-05-25 15:17 UTC Modified: 2001-05-29 04:48 UTC
From: jan dot krutisch at hamburg dot de Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.0.4pl1 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
11 + 20 = ?
Subscribe to this entry?

 
 [2001-05-25 15:17 UTC] jan dot krutisch at hamburg dot de
File uploading does not work in the combination of Opera and PHP 4.x. According to the Opera Forums, this seems to be a known issue and happens with several systems for file upload. The Opera Developers refer to section 4.2 of RFC 2616 and state that Opera's behaviour is perfectly legal.
This implies that PHP's behaviour in this respect is faulty.

The full quote from the Opera Developer:

-----

Somebody maintaining that service didn't read section 4.2 of RFC 2616,
otherwise known as the HTTP 1.1 standard, which says that HTTP Headers may
be split across lines, if the break is done using CRLF followed by a space
or TAB character, (commonly used in email headers).

-----

Although Opera Developers said that they will "fix" the behaviour to work like NS and MSIE, it might be a good idea to fix this in PHP, too.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-26 07:10 UTC] jan dot krutisch at hamburg dot de
Here's what's actually happening: When uploading a file to a php web server, using any Version of Opera (I have confirmation for 5.11 (Winversion) and 5.0b7 (Linux) and 5.0b3 (Linux)), PHP acts silly:

(The examples assume the name of the upload field as "upload")

$upload contains something like: Content-Type: image/jpeg; name=\"test2.jpg\" ????

$upload_name, xxx_size and xxx_type are empty. 

The PHP4 style $HTTP_POST_FILES[][] vars are ALL empty.

Building a "working" example should be easy, I will provide one, if asked so.
 [2001-05-29 04:48 UTC] sniper@php.net
Should be fixed in PHP 4.0.6RC1:

http://www.php.net/~andi/php-4.0.6RC1.tar.gz

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC