diff options
Diffstat (limited to 'ext/fileinfo/tests/bug77961.phpt')
-rw-r--r-- | ext/fileinfo/tests/bug77961.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/fileinfo/tests/bug77961.phpt b/ext/fileinfo/tests/bug77961.phpt new file mode 100644 index 0000000000..95340708b2 --- /dev/null +++ b/ext/fileinfo/tests/bug77961.phpt @@ -0,0 +1,14 @@ +--TEST-- +Bug #77961 (finfo_open crafted magic parsing SIGABRT) +--SKIPIF-- +<?php +if (!extension_loaded('fileinfo')) die('skip fileinfo extension not available'); +?> +--FILE-- +<?php +finfo_open(FILEINFO_NONE, __DIR__ . '/bug77961.magic'); +?> +--EXPECTF-- +Notice: finfo_open(): Warning: Expected numeric type got `indirect' in %s on line %d + +Fatal error: fatal libmagic error in %s on line %d |