php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23707 $HTTP_POST_VARS
Submitted: 2003-05-19 19:32 UTC Modified: 2003-05-19 19:44 UTC
From: da_bomb at hisplace dot net Assigned:
Status: Not a bug Package: HTTP related
PHP Version: 5CVS-2003-05-19 (dev) OS: Windows XP Pro
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:
27 + 26 = ?
Subscribe to this entry?

 
 [2003-05-19 19:32 UTC] da_bomb at hisplace dot net
Here is an example script that will show the bug in action after a form submit
<?php
foreach ( $HTTP_POST_VARS as $key => $val ) {
   echo "<b>{$key}:</b> {$val}<br />\n";
}
?>
I'm using the pre-built version of PHP5 from http://snaps.php.net and I don't believe I have anything unique or specific about my setup.

It's not really a bug but $HTTP_POST_VARS isn't there in PHP5. I know $_POST is the preferable method but phpBB for example uses $HTTP_POST_VARS for backwards compatability. It's pretty easy to write some code to workaround the problem but most people couldn't do it and I'm just wondering if this variable will be included in PHP5 or is it being phased out?

Thanks :)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-19 19:44 UTC] sniper@php.net
That's what you get for using development version of PHP. :)
You're propably using php.ini-recommended which has this option:
  
  register_long_arrays = Off

Just turn that 'On' and the long array names are enabled again.

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Oct 16 22:03:34 2021 UTC