1--TEST-- 2Test FILEINFO_EXTENSION flag 3--SKIPIF-- 4<?php 5if (!class_exists('finfo')) 6 die('skip no fileinfo extension'); 7--FILE-- 8<?php 9 10$f = new finfo; 11var_dump($f->file(dirname(__FILE__) . "/resources/test.jpg", FILEINFO_EXTENSION)); 12 13?> 14===DONE=== 15--EXPECT-- 16string(17) "jpeg/jpg/jpe/jfif" 17===DONE=== 18