mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
e23f62fc4f
- detect CLI binary and don't print < ;br < in this case
22 lines
505 B
PHP
22 lines
505 B
PHP
<?php
|
|
$br = (php_sapi_name() == "cli")? "":"<br>";
|
|
|
|
if(!extension_loaded('extname')) {
|
|
dl('extname.' . PHP_SHLIB_SUFFIX);
|
|
}
|
|
$module = 'extname';
|
|
$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";
|
|
?>
|