Bug #18415 Updated: $_POST and $HTTP_POST_VARS are not exported

From: Date: Thu, 18 Jul 2002 18:28:34 +0000
Subject: Bug #18415 Updated: $_POST and $HTTP_POST_VARS are not exported
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14550@lists.php.net to get a copy of this message
ID: 18415 Updated by: sniper@php.net Reported By: ilia@prohost.org -Status: Open +Status: Closed Bug Type: *Web Server problem Operating System: Linux 2.4.17 PHP Version: 4.2.1 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2002-07-18 14:09:58] ilia@prohost.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 ( ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18415&edit=1

« previous php.bugs (#14550) next »