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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jan dot krutisch at hamburg dot de
New email:
PHP Version: OS:

 

 [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-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 23 04:01:27 2019 UTC