xref: /PHP-8.0/ext/fileinfo/tests/bug77961.phpt (revision 39f95f56)
1--TEST--
2Bug #77961 (finfo_open crafted magic parsing SIGABRT)
3--SKIPIF--
4<?php
5if (!extension_loaded('fileinfo')) die('skip fileinfo extension not available');
6?>
7--FILE--
8<?php
9finfo_open(FILEINFO_NONE, __DIR__ . '/bug77961.magic');
10?>
11--EXPECTF--
12Warning: finfo_open(): Expected numeric type got `indirect' in %s on line %d
13
14Fatal error: fatal libmagic error in %s on line %d
15