#23707 [Opn->Bgs]: $HTTP_POST_VARS

From: Date: Tue, 20 May 2003 00:44:12 +0000
Subject: #23707 [Opn->Bgs]: $HTTP_POST_VARS
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39999@lists.php.net to get a copy of this message
ID: 23707 Updated by: sniper@php.net Reported By: da_bomb at hisplace dot net -Status: Open +Status: Bogus Bug Type: HTTP related Operating System: Windows XP Pro PHP Version: 5CVS-2003-05-19 (dev) New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2003-05-19 19:32:22] 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 :) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23707&edit=1

« previous php.bugs (#39999) next »