I’m experiencing strange behaviour on a debian server with LAMP-Stack.
This simple test explains my problem:
This is my test.php script:
<?php
$params = $_GET;
print_r($params);
?>
If I issue the url: http://localhost/test.php?arr[a]=1&arr[b]=2&arr[c]=3&test=xyz
I would expect the server to return:
Array
(
[arr] => Array
(
[a] => 1
[b] => 2
[c] => 3
)
[test] => xyz
)
But I only get:
Array
(
[arr] => Array
(
[a] => 1
)
[test] => xyz
)
I checked the php.ini, apache config and so one. I don’t have a clou why the parameters are not processed correctly.
Even my
$_SERVER[REQUEST_URI]
variable shows the correct parameters, but they are simply not processed.
Any ideas?
I finally figured the problem out:
This is a bug in PHP 5.3.8 on SUSE Enterprise Linux.
I got the admin to upgrade to PHP 5.3.17 and this misbehavior disappeared.