/usr/share/php/tests/PHP_Compat/tests/environment/magic_quotes_gpc_on.phpt is in php-compat 1.6.0a3-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | --TEST--
Environment - magic_quotes_gpc on
--INI--
magic_quotes_gpc=Off
--POST--
a'b=a'b&aa'b[a'b]=a'b&&aa'b[a'bb][a'b]=a'b
--FILE--
<?php
require_once 'PHP/Compat/Environment/magic_quotes_gpc_on.php';
print_r($_POST);
?>
--EXPECT--
Array
(
[a\'b] => a\'b
[aa\'b] => Array
(
[a\'b] => a\'b
[a\'bb] => Array
(
[a\'b] => a\'b
)
)
)
|