/usr/share/php/tests/Config/test/bug16724.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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | --TEST--
Test for request #16724: lowercase constant names option
--FILE--
<?php
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';
$datasrc = dirname(__FILE__) . '/bug16724-config.php';
$root = $config->parseConfig(
$datasrc, 'phpconstants',
array('lowercase' => true)
);
print_r($root->toArray());
echo $root->toString('phpconstants');
//not lowercasing should still work
$config = new Config();
$root = $config->parseConfig(
$datasrc, 'phpconstants'
);
print_r($root->toArray());
?>
--EXPECT--
Array
(
[root] => Array
(
[my_config_option] => foo
[host12_3] => foo
)
)
define('MY_CONFIG_OPTION', 'foo');
define('HOST12_3', 'foo');
Array
(
[root] => Array
(
[MY_CONFIG_OPTION] => foo
[HOST12_3] => foo
)
)
|