ID: 25661
Updated by: [EMAIL PROTECTED]
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