1--TEST-- 2Test finfo_close() function : basic functionality 3--EXTENSIONS-- 4fileinfo 5--FILE-- 6<?php 7echo "*** Testing finfo_close() : basic functionality ***\n"; 8 9$magicFile = __DIR__ . DIRECTORY_SEPARATOR . 'magic'; 10 11$finfo = finfo_open( FILEINFO_MIME, $magicFile ); 12var_dump( $finfo ); 13 14// Calling finfo_close() with all possible arguments 15var_dump( finfo_close($finfo) ); 16 17$finfo = new finfo( FILEINFO_MIME, $magicFile ); 18var_dump( $finfo ); 19unset( $finfo ); 20 21?> 22--EXPECTF-- 23*** Testing finfo_close() : basic functionality *** 24object(finfo)#%d (0) { 25} 26bool(true) 27object(finfo)#%d (%d) { 28} 29