mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
- Add new test
This commit is contained in:
parent
dd862bb3e3
commit
34898339b5
1 changed files with 18 additions and 0 deletions
18
ext/standard/tests/general_functions/bug44461.phpt
Executable file
18
ext/standard/tests/general_functions/bug44461.phpt
Executable file
|
@ -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===
|
Loading…
Add table
Add a link
Reference in a new issue