$_REQUEST in php 5.0.2 vs php 5.1.2
Posted: Wed Apr 19, 2006 12:22 am
I wrote some code in an apache 2/php 5.1.2 environment
and it worked just peachy.
I then moved it to an apache 1.3.27/php 5.0.2 environment
and it did NOT work.
Both environments were on windows systems (XP in former
case, 2000 in latter case).
The problem is that $_REQUEST is not getting populated
as expected in 1.3.27/5.0.2 environment.
The following code exhibits the problem I am seeing with
$_REQUEST:
When form is POSTed to this code in 2.0/5.1.2, all is well.
Same code in 1.3.27/5.0.2 environment, and the $_REQUEST
array is empty.
My two php environments _appear_ to be configured properly
(per phpinfo) and nothing looks out of wack with apache configs
so I am stumped.
Is there a config paramter I am missing? Is this a bug? Am
I missing something simple?
Thanks
Rob
and it worked just peachy.
I then moved it to an apache 1.3.27/php 5.0.2 environment
and it did NOT work.
Both environments were on windows systems (XP in former
case, 2000 in latter case).
The problem is that $_REQUEST is not getting populated
as expected in 1.3.27/5.0.2 environment.
The following code exhibits the problem I am seeing with
$_REQUEST:
Code: Select all
foreach (array("_GET", "_REQUEST","_POST") as $src) {
echo $src."<br/>";
foreach (${$src} as $idx => $value) {
echo $idx ."=".$value."<br/>";
};
};Same code in 1.3.27/5.0.2 environment, and the $_REQUEST
array is empty.
My two php environments _appear_ to be configured properly
(per phpinfo) and nothing looks out of wack with apache configs
so I am stumped.
Is there a config paramter I am missing? Is this a bug? Am
I missing something simple?
Thanks
Rob