mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
- don't use short tag
- detect CLI binary and don't print < ;br < in this case
This commit is contained in:
parent
378776dc33
commit
e23f62fc4f
1 changed files with 6 additions and 4 deletions
|
@ -1,14 +1,16 @@
|
||||||
<?
|
<?php
|
||||||
|
$br = (php_sapi_name() == "cli")? "":"<br>";
|
||||||
|
|
||||||
if(!extension_loaded('extname')) {
|
if(!extension_loaded('extname')) {
|
||||||
dl('extname.' . PHP_SHLIB_SUFFIX);
|
dl('extname.' . PHP_SHLIB_SUFFIX);
|
||||||
}
|
}
|
||||||
$module = 'extname';
|
$module = 'extname';
|
||||||
$functions = get_extension_funcs($module);
|
$functions = get_extension_funcs($module);
|
||||||
echo "Functions available in the test extension:<br>\n";
|
echo "Functions available in the test extension:$br\n";
|
||||||
foreach($functions as $func) {
|
foreach($functions as $func) {
|
||||||
echo $func."<br>\n";
|
echo $func."$br\n";
|
||||||
}
|
}
|
||||||
echo "<br>\n";
|
echo "$br\n";
|
||||||
$function = 'confirm_' . $module . '_compiled';
|
$function = 'confirm_' . $module . '_compiled';
|
||||||
if (extension_loaded($module)) {
|
if (extension_loaded($module)) {
|
||||||
$str = $function($module);
|
$str = $function($module);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue