]> granicus.if.org Git - php/commitdiff
added failing test
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 4 Jun 2015 00:16:25 +0000 (02:16 +0200)
committerAnatol Belski <ab@php.net>
Wed, 10 Jun 2015 08:39:35 +0000 (10:39 +0200)
Zend/tests/bug69551.phpt [new file with mode: 0644]

diff --git a/Zend/tests/bug69551.phpt b/Zend/tests/bug69551.phpt
new file mode 100644 (file)
index 0000000..0b391e7
--- /dev/null
@@ -0,0 +1,11 @@
+--TEST--
+Bug #69551 - parse_ini_file() and parse_ini_string() segmentation fault
+--FILE--
+<?php
+$ini = '[Network.eth0]
+SubnetMask = "' . "\x0A\x1B" . '"';
+parse_ini_string($ini, false, INI_SCANNER_RAW);
+echo 'Ready'; // do we reach this line?
+?>
+--EXPECT--
+Ready