#25661 [Opn->Csd]: register_globals gone

From: Date: Thu, 25 Sep 2003 21:05:24 +0000
Subject: #25661 [Opn->Csd]: register_globals gone
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-48112@lists.php.net to get a copy of this message
ID: 25661 Updated by: derick@php.net Reported By: cliff at may dot be -Status: Open +Status: Closed -Bug Type: Documentation problem +Bug Type: Zend Engine 2 problem Operating System: Apache2 PHP Version: 5.0.0b1 (beta1) New Comment: No, that was a bug... and it's fixed now. (try the latest php5-snapshot from snaps.php.net). Previous Comments: ------------------------------------------------------------------------ [2003-09-25 15:03:38] cliff at may dot be Ergh... $_POST('test') should read $_POST['test'] throughout. ------------------------------------------------------------------------ [2003-09-25 14:58:59] cliff at may dot be Description: ------------ I assume it is deliberate that, in PHP-5b1, register_globals = 1 no longer brings in $_POST() and $_GET() variables but the documentation and php.ini-dist still imply that it is an option. Reproduce code: --------------- echo "<PRE>\n"; echo 'register_globals = ', ini_get('register_globals'), "\n"; echo "test = $test\n"; echo "\$POST('test') = ", $_POST('test'), "\n"; Expected result: ---------------- register_globals = 1 test = ok $POST('test') = ok Actual result: -------------- register_globals = 1 test = $POST('test') = ok ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25661&edit=1

« previous php.bugs (#48112) next »