1--TEST-- 2Test finfo_set_flags() function : basic functionality 3--EXTENSIONS-- 4fileinfo 5--FILE-- 6<?php 7$magicFile = __DIR__ . DIRECTORY_SEPARATOR . 'magic'; 8$finfo = finfo_open( FILEINFO_MIME, $magicFile ); 9 10echo "*** Testing finfo_set_flags() : basic functionality ***\n"; 11 12var_dump( finfo_set_flags( $finfo, FILEINFO_NONE ) ); 13var_dump( finfo_set_flags( $finfo, FILEINFO_SYMLINK ) ); 14 15finfo_close( $finfo ); 16 17// OO way 18$finfo = new finfo( FILEINFO_NONE, $magicFile ); 19var_dump( $finfo->set_flags( FILEINFO_MIME ) ); 20 21?> 22--EXPECT-- 23*** Testing finfo_set_flags() : basic functionality *** 24bool(true) 25bool(true) 26bool(true) 27