mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
3978d3a957
Bison 3.6 seems to use "end of file" rather than "$end" for this. Force the same on older bison versions to be consistent.
21 lines
419 B
PHP
21 lines
419 B
PHP
--TEST--
|
|
Bug #70748 (Segfault in ini_lex () at Zend/zend_ini_scanner.l)
|
|
--FILE--
|
|
<?php
|
|
$ini = '[${ ';
|
|
|
|
$ini_file = __DIR__ . "/bug70748.ini";
|
|
|
|
file_put_contents($ini_file, $ini);
|
|
|
|
var_dump(parse_ini_file($ini_file));
|
|
?>
|
|
--CLEAN--
|
|
<?php
|
|
unlink(__DIR__ . "/bug70748.ini");
|
|
?>
|
|
--EXPECTF--
|
|
Warning: syntax error, unexpected end of file, expecting '}' in %sbug70748.ini on line %d
|
|
in %sbug70748.php on line %d
|
|
bool(false)
|