Annotation of embedaddon/php/ext/standard/tests/strings/bug51899.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #51899 (Parse error in parse_ini_file() function when empy value followed by no newline)
3: --FILE--
4: <?php
5:
6: var_dump(parse_ini_string('a='));
7: var_dump(parse_ini_string('a= '));
8: var_dump(parse_ini_string('a='.PHP_EOL));
9: var_dump(parse_ini_string('a=b '));
10: var_dump(parse_ini_string(''));
11: var_dump(parse_ini_string(NULL));
12: var_dump(parse_ini_string("\0"));
13:
14: ?>
15: --EXPECT--
16: array(1) {
17: ["a"]=>
18: string(0) ""
19: }
20: array(1) {
21: ["a"]=>
22: string(0) ""
23: }
24: array(1) {
25: ["a"]=>
26: string(0) ""
27: }
28: array(1) {
29: ["a"]=>
30: string(2) "b "
31: }
32: array(0) {
33: }
34: array(0) {
35: }
36: array(0) {
37: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>