Voir les fonctions fournies par une extension
Publié le 08/10/2007 PHP
<?php if(!extension_loaded('clamav')) { dl('clamav.' . PHP_SHLIB_SUFFIX); } $module = 'clamav'; $functions = get_extension_funcs($module); echo "Functions available in the test extension:<br>\n"; foreach($functions as $func) { echo $func."<br>\n"; } echo "<br>\n"; ?>
Cela renvoie :
Functions available in the test extension: cl_info cl_scanfile cl_scanbuff cl_setlimits cl_scanfile_ex cl_scanbuff_ex cl_pretcode clam_scan_buffer clam_scan_file clam_get_version
Issu de http://www.howtoforge.com/scan_viruses_with_php_clamavlib