php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18415 $_POST and $HTTP_POST_VARS are not exported
Submitted: 2002-07-18 14:09 UTC Modified: 2002-07-18 14:28 UTC
From: ilia at prohost dot org Assigned:
Status: Closed Package: *Web Server problem
PHP Version: 4.2.1 OS: Linux 2.4.17
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: ilia at prohost dot org
New email:
PHP Version: OS:

 

 [2002-07-18 14:09 UTC] ilia at prohost dot org
When 'file_upload' setting in php.ini set to Off, then any form submited via POST with 'enctype="multipart/form-data"' in its defenition will not export $_POST and $HTTP_POST_VARS on submission.
Below is an example script that demonstrates the problem.
<?php 
echo '<pre>';
print_r($HTTP_POST_VARS);
echo '</pre>'; ?>
<html><form method="post" action="test.php" enctype="multipart/form-data"><input type="submit" name="test" value="Click Me"></form>

Script Output
-- file_upload == On --
Array
(
    [test] => Click Me
)
-- file_upload == Off --
Array
(
)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-18 14:28 UTC] sniper@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Dec 05 21:03:39 2021 UTC