#24401 [Opn->Ver]: register globals does not work correctly??!!
| From: | magnus@php.net | Date: | Fri, 04 Jul 2003 16:42:55 +0000 |
| Subject: | #24401 [Opn->Ver]: register globals does not work correctly??!! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-43280@lists.php.net to get a copy of this message | ||
ID: 24401
Updated by: magnus@php.net
Reported By: eero at jlug dot org
-Status: Open
+Status: Verified
Bug Type: *General Issues
Operating System: Linux
PHP Version: 5.0.0b1 (beta1)
New Comment:
Bug #24498 was marked as bogus as it is the same issue.
Verified it here.
Previous Comments:
------------------------------------------------------------------------
[2003-07-04 02:26:23] eero at jlug dot org
Tested with latest cvs-version (php5-200307040530 ),
5.0.0b2-dev sama bug still exists.
------------------------------------------------------------------------
[2003-07-04 01:53:55] sniper@php.net
Try the latest PHP 5 snapshot from http://snaps.php.net/
------------------------------------------------------------------------
[2003-07-03 15:38:13] Colin_Witt at baylor dot edu
Same issue here with PHP 5.0.0b1 running on Mac OS X
10.2.6.
php.ini file says register_globals = On
phpinfo() says register_globals On On
http://localhost/index.php?id=1234 should create
$id
with value 1234, but it does not. If I add a check at
the top of the script like this, it works:
if ($id == "") { $id = $_GET['id']; }
But there are other GET variables being passed elsewhere
in the app, and they too are not properly registered.
------------------------------------------------------------------------
[2003-07-03 03:41:06] fuhaha at seoul dot com
php5.0b1 on linux machine. (redhat 9.0)
setted register_globals=On
and phpinfo() check result is register_globals On On
it has problem.
do not recognize GET values, and POST values.
why happend this problem ?
help me plz.
------------------------------------------------------------------------
[2003-06-30 08:59:56] philippe dot nonn at cgeyDOT dot com
Hi,
it seems that register_globals don't even work on the Windows version.
When I call a php form which call phpinfo() with parameters (like
phpinfo.php?foo=test), there is non global variable $foo.
The only way to get the $foo variable is to use get['foo']
Philippe
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24401
--
Edit this bug report at http://bugs.php.net/?id=24401&edit=1