xref: /PHP-5.6/ext/skeleton/skeleton.php (revision e23f62fc)
1<?php
2$br = (php_sapi_name() == "cli")? "":"<br>";
3
4if(!extension_loaded('extname')) {
5	dl('extname.' . PHP_SHLIB_SUFFIX);
6}
7$module = 'extname';
8$functions = get_extension_funcs($module);
9echo "Functions available in the test extension:$br\n";
10foreach($functions as $func) {
11    echo $func."$br\n";
12}
13echo "$br\n";
14$function = 'confirm_' . $module . '_compiled';
15if (extension_loaded($module)) {
16	$str = $function($module);
17} else {
18	$str = "Module $module is not compiled into PHP";
19}
20echo "$str\n";
21?>
22