PDA

View Full Version : arg_separator.input is ignored


posenato
03-23-2010, 04:58 PM
To separate arguments of a query string, any character specified by "arg_separator.input" configuration option should be valid.

I think that Quercus 4.0.5. ignores "arg_separator.input" value and uses only '&' to fill $_GET.

I tried to set "arg_separator.input" both in web.xml <php-ini> and by ini_set() instruction, but it doesn'work.


A simple test:

Write the following PHP fragment:
<?php
ini_set("arg_separator.input", ";");
echo "arg_separator.input value: ". ini_get('arg_separator.input') . "<br>";

echo "Get parameters: ";
print_r($_GET);

?>

and call it from the browser in a way similar to this:
http://localhost/php/args.php?1=first&2=second;3=third [^]

The output should be:

arg_separator.input value: ;
Get parameters: Array ( [1] => first [2] => second [3] => third )


The actual output is:

arg_separator.input value: ;
Get parameters: Array ( [1] => first [2] => second;3=third )

nam
04-01-2010, 07:00 PM
Fixed for 4.0.6