php-src/ext/phar/phar.php
Greg Beaver 9d4036ea7c initial import
# file handling needs to use streams, handle safe_mode/open_basedir
2005-12-04 20:35:38 +00:00

22 lines
496 B
PHP

<?php
$br = (php_sapi_name() == "cli")? "":"<br>";
if(!extension_loaded('phar')) {
dl('phar.' . PHP_SHLIB_SUFFIX);
}
$module = 'phar';
$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";
?>