php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25661 register_globals gone
Submitted: 2003-09-25 14:58 UTC Modified: 2003-09-25 17:05 UTC
From: cliff at may dot be Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.0.0b1 (beta1) OS: Apache2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cliff at may dot be
New email:
PHP Version: OS:

 

 [2003-09-25 14:58 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-25 15:03 UTC] cliff at may dot be
Ergh...  $_POST('test') should read $_POST['test'] throughout.
 [2003-09-25 17:05 UTC] derick@php.net
No, that was a bug... and it's fixed now. (try the latest php5-snapshot from snaps.php.net).
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 23 21:00:03 2025 UTC