xref: /PHP-5.6/Zend/tests/bug70748.phpt (revision d5f76caf)
1--TEST--
2Bug #70748 (Segfault in ini_lex () at Zend/zend_ini_scanner.l)
3--FILE--
4<?php
5$ini = '[${ 	';
6
7$ini_file = __DIR__ . "/bug70748.ini";
8
9file_put_contents($ini_file, $ini);
10
11var_dump(parse_ini_file($ini_file));
12?>
13--CLEAN--
14<?php
15unlink(__DIR__ . "bug70748.ini");
16?>
17--EXPECTF--
18Warning: syntax error, unexpected $end, expecting '}' in %sbug70748.ini on line %d
19 in %sbug70748.php on line %d
20bool(false)
21