/usr/share/php/tests/Config/test/bug12291.phpt is in php-config 1.10.12-4.
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--
regression test for bug #12291: do not require space before newline
--FILE--
<?php
//Config previously required at least one space before the newline
// separator. This is not always needed, and so we broke backward compatibility
// by not collapsing all trailing spaces into one - but this is
// something nobody should have relied on or found to be a good idea :)
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';
$datasrc = dirname(__FILE__) . '/bug12291.ini';
$root = $config->parseConfig($datasrc, 'genericconf');
var_dump($root->toArray());
?>
--EXPECT--
array(1) {
["root"]=>
array(3) {
["keyword"]=>
string(11) "foo,bar,baz"
["keyword_with_space"]=>
string(13) "foo, bar, baz"
["keyword_with_two_spaces"]=>
string(14) "foo, bar, baz"
}
}
|