Skip to content

Commit

Permalink
Merge branch 'PHP-5.6' into PHP-7.0
Browse files Browse the repository at this point in the history
Conflicts:
	Zend/zend_ini_scanner.c
  • Loading branch information
laruence committed Oct 20, 2015
2 parents 131a348 + d5f76ca commit c7cb403
Show file tree
Hide file tree
Showing 3 changed files with 3,622 additions and 20 deletions.
20 changes: 20 additions & 0 deletions Zend/tests/bug70748.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--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, expecting '}' in %sbug70748.ini on line %d
in %sbug70748.php on line %d
bool(false)
Loading

0 comments on commit c7cb403

Please sign in to comment.