xref: /php-src/Zend/tests/bug76965.phpt (revision f8d79582)
1--TEST--
2Bug #76965 (INI_SCANNER_RAW doesn't strip trailing whitespace)
3--FILE--
4<?php
5// the trailing whitespace is intentional
6$ini = <<<END
71="foo"
82="bar" ; comment
93= baz
104= "foo;bar"
115= "foo" ; bar ; baz
126= "foo;bar" ; baz
137= foo"bar ; "ok
14END;
15
16var_dump(parse_ini_string($ini, false, INI_SCANNER_RAW));
17?>
18--EXPECT--
19array(7) {
20  [1]=>
21  string(3) "foo"
22  [2]=>
23  string(3) "bar"
24  [3]=>
25  string(3) "baz"
26  [4]=>
27  string(7) "foo;bar"
28  [5]=>
29  string(3) "foo"
30  [6]=>
31  string(7) "foo;bar"
32  [7]=>
33  string(7) "foo"bar"
34}
35