/usr/share/php/tests/Config/test/bug11807.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 | --TEST--
regression test for bug #11807: serializing null values in php arrays
--FILE--
<?php
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';
$path = dirname(__FILE__) . '/bug11807.txt';
$data = array(
"string" => "id",
"null" => null,
"false" => false,
"zero" => 0,
"empty_string" => ''
);
$root = $config->parseConfig(
$data,
'phparray',
array('name' => 'conf')
);
$config->writeConfig(
$path,
'phparray',
array('name' => 'conf')
);
print file_get_contents($path);
?>
--CLEAN--
<?php
unlink(dirname(__FILE__) . '/bug11807.txt');
?>
--EXPECT--
<?php
$conf['string'] = 'id';
$conf['null'] = null;
$conf['false'] = false;
$conf['zero'] = 0;
$conf['empty_string'] = '';
?>
|