xref: /php-src/ext/fileinfo/tests/bug77961.phpt (revision b7c5813c)
1--TEST--
2Bug #77961 (finfo_open crafted magic parsing SIGABRT)
3--EXTENSIONS--
4fileinfo
5--FILE--
6<?php
7finfo_open(FILEINFO_NONE, __DIR__ . '/bug77961.magic');
8?>
9--EXPECTF--
10Warning: finfo_open(): Expected numeric type got `indirect' in %s on line %d
11
12Warning: finfo_open(): Failed to load magic database at "%sbug77961.magic" in %s on line %d
13