summaryrefslogtreecommitdiff
path: root/ext/fileinfo/tests/bug77961.phpt
blob: 95340708b2777346ef60a43e6f7eab79ba6f810c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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