Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.0b4

Bug #834 undefined index CONTENT_TYPE
Submitted: 2004-02-23 01:46 UTC
From: maka3d at yahoo dot com dot br Assigned: antonio
Status: Closed Package: HTTP_Upload
PHP Version: 4.3.4 OS: irrelevant
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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 : 30 + 19 = ?

 
 [2004-02-23 01:46 UTC] maka3d at yahoo dot com dot br
Description: ------------ at line 251, a notice raise if index CONTENT_TYPE doesn't exist, what happens in my server when no post was sent. Replace the follow line: $this->content_type = $HTTP_SERVER_VARS['CONTENT_TYPE']; for this: if( isset($_SERVER['CONTENT_TYPE']) ) $this->content_type = $_SERVER['CONTENT_TYPE']; and change too the old vector for $_SERVER

Comments

 [2004-05-28 18:31 UTC] antonio
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. http://cvs.php.net/co.php/pear/HTTP_Upload/Upload.php?r=1.28