]> granicus.if.org Git - php/commitdiff
- MFH Add new test
authorMarcus Boerger <helly@php.net>
Fri, 21 Mar 2008 15:21:38 +0000 (15:21 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 21 Mar 2008 15:21:38 +0000 (15:21 +0000)
ext/standard/tests/general_functions/bug44461.phpt [new file with mode: 0755]

diff --git a/ext/standard/tests/general_functions/bug44461.phpt b/ext/standard/tests/general_functions/bug44461.phpt
new file mode 100755 (executable)
index 0000000..6fa73ee
--- /dev/null
@@ -0,0 +1,18 @@
+--TEST--
+Bug #44461 (parse_ini_file crashes)
+--FILE--
+<?php
+file_put_contents(__DIR__ . 'bug44461.ini', <<<EOF
+[attachments]
+zip = "application/zip" ; MIME-type for ZIP files
+EOF
+);
+parse_ini_file(__DIR__ . 'bug44461.ini', true);
+?>
+===DONE===
+--CLEAN--
+<?php
+unlink(__DIR__ . 'bug44461.ini');
+?>
+--EXPECT--
+===DONE===
\ No newline at end of file