1--TEST--
2Test parse_ini_file() function : variation: identical properties and values are not referenced.
3--CREDITS--
4Dave Kelsey <d_kelsey@uk.ibm.com>
5--FILE--
6<?php
7echo "*** Testing parse_ini_file() : variation ***\n";
8$output_file = __FILE__.".ini";
9$iniFile = <<<FILE
10[section1]
11value1=original
12value2=original
13[section2]
14value1=original
15value2=different
16FILE;
17
18file_put_contents($output_file, $iniFile);
19
20$a = parse_ini_file($output_file, true);
21var_dump($a);
22$a['section1']['value1'] = 'changed';
23var_dump($a);
24
25unlink($output_file);
26?>
27--EXPECT--
28*** Testing parse_ini_file() : variation ***
29array(2) {
30  ["section1"]=>
31  array(2) {
32    ["value1"]=>
33    string(8) "original"
34    ["value2"]=>
35    string(8) "original"
36  }
37  ["section2"]=>
38  array(2) {
39    ["value1"]=>
40    string(8) "original"
41    ["value2"]=>
42    string(9) "different"
43  }
44}
45array(2) {
46  ["section1"]=>
47  array(2) {
48    ["value1"]=>
49    string(7) "changed"
50    ["value2"]=>
51    string(8) "original"
52  }
53  ["section2"]=>
54  array(2) {
55    ["value1"]=>
56    string(8) "original"
57    ["value2"]=>
58    string(9) "different"
59  }
60}
61