mirror of
https://github.com/php/pecl-php-ffi.git
synced 2026-03-23 23:42:23 +01:00
from DLLs and DSO's (Unix). Tested under win32 only for now, but should compile under Unices also.
20 lines
447 B
PHP
20 lines
447 B
PHP
<?
|
|
if(!extension_loaded('ffi')) {
|
|
dl('ffi.' . PHP_SHLIB_SUFFIX);
|
|
}
|
|
$module = 'ffi';
|
|
$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";
|
|
$function = 'confirm_' . $module . '_compiled';
|
|
if (extension_loaded($module)) {
|
|
$str = $function($module);
|
|
} else {
|
|
$str = "Module $module is not compiled into PHP";
|
|
}
|
|
echo "$str\n";
|
|
?>
|