Skip to content

Commit d5f76ca

Browse files
committed
Fixed bug #70748 (Segfault in ini_lex () at Zend/zend_ini_scanner.l)
1 parent 395ef4e commit d5f76ca

File tree

5 files changed

+1944
-1919
lines changed

5 files changed

+1944
-1919
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? 2015, PHP 5.6.16
44

5+
- Core:
6+
. Fixed bug #70748 (Segfault in ini_lex () at Zend/zend_ini_scanner.l).
7+
(Laruence)
8+
59
- PDO_DBlib:
610
. Fixed bug #69757 (Segmentation fault on nextRowset).
711
(miracle at rpz dot name)

Zend/tests/bug70748.phpt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--TEST--
2+
Bug #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+
9+
file_put_contents($ini_file, $ini);
10+
11+
var_dump(parse_ini_file($ini_file));
12+
?>
13+
--CLEAN--
14+
<?php
15+
unlink(__DIR__ . "bug70748.ini");
16+
?>
17+
--EXPECTF--
18+
Warning: syntax error, unexpected $end, expecting '}' in %sbug70748.ini on line %d
19+
in %sbug70748.php on line %d
20+
bool(false)

0 commit comments

Comments
 (0)