1--TEST-- 2finfo_open(): Testing magic_file names 3--EXTENSIONS-- 4fileinfo 5--FILE-- 6<?php 7$buggyPath = str_repeat('a', PHP_MAXPATHLEN + 1); 8 9var_dump(finfo_open(FILEINFO_MIME, $buggyPath)); 10 11try { 12 $object = new finfo(FILEINFO_MIME, $buggyPath); 13} catch (\Exception $ex) { 14 echo "TEST:" . $ex->getMessage() . PHP_EOL; 15} 16?> 17--EXPECTF-- 18bool(false) 19TEST:Constructor failed 20