#24401 [Opn->Fbk]: register globals does not work correctly??!!
| From: | sniper@php.net | Date: | Fri, 04 Jul 2003 06:53:56 +0000 |
| Subject: | #24401 [Opn->Fbk]: register globals does not work correctly??!! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-43229@lists.php.net to get a copy of this message | ||
ID: 24401
Updated by: sniper@php.net
Reported By: eero at jlug dot org
-Status: Open
+Status: Feedback
Bug Type: *General Issues
Operating System: Linux
PHP Version: 5.0.0b1 (beta1)
New Comment:
Try the latest PHP 5 snapshot from http://snaps.php.net/
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2003-06-30 06:34:34] petrich at tronic-media dot com
Hi,
still have the problem;
(register_globals = On in php.ini are ignored, ServerApi = Apache2)
Configure String:
./configure --disable-all
--with-apxs2=/mnt/60giga/samba/public/www/apache2/bin/apxs
Hans-Jürgen Petrich
------------------------------------------------------------------------
[2003-06-30 06:22:57] eero at jlug dot org
Now compiled with ./configure --with-mysql
--with-apxs=/home/apache/bin/apxs and problems still exists.
------------------------------------------------------------------------
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