Annotation of embedaddon/php/ext/standard/tests/general_functions/bug48768.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #48768 (parse_ini_*() crashes with INI_SCANNER_RAW)
3: --FILE--
4: <?php
5:
6: $ini_location = dirname(__FILE__) . '/bug48768.tmp';
7:
8: // Build ini data
9: $ini_data = <<< EOT
10: equal = "="
11:
12: EOT;
13:
14: // Save ini data to file
15: file_put_contents($ini_location, $ini_data);
16:
17: var_dump(parse_ini_file($ini_location, false, INI_SCANNER_RAW));
18: var_dump(parse_ini_file($ini_location, false, INI_SCANNER_NORMAL));
19:
20: ?>
21: --CLEAN--
22: <?php @unlink(dirname(__FILE__) . '/bug48768.tmp'); ?>
23: --EXPECT--
24: array(1) {
25: ["equal"]=>
26: string(1) "="
27: }
28: array(1) {
29: ["equal"]=>
30: string(1) "="
31: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>