#25661 [Opn]: register_globals gone

From: Date: Thu, 25 Sep 2003 19:03:38 +0000
Subject: #25661 [Opn]: register_globals gone
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969356420@lists.php.net to get a copy of this message
ID: 25661 User updated by: cliff at may dot be Reported By: cliff at may dot be Status: Open Bug Type: Documentation problem Operating System: Apache2 PHP Version: 5.0.0b1 (beta1) New Comment: Ergh... $_POST('test') should read $_POST['test'] throughout. Previous Comments: ------------------------------------------------------------------------ [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.doc (#969356420) next »