mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +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')) {
|
||||
dl('extname.' . PHP_SHLIB_SUFFIX);
|
||||
}
|
||||
$module = 'extname';
|
||||
$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) {
|
||||
echo $func."<br>\n";
|
||||
echo $func."$br\n";
|
||||
}
|
||||
echo "<br>\n";
|
||||
echo "$br\n";
|
||||
$function = 'confirm_' . $module . '_compiled';
|
||||
if (extension_loaded($module)) {
|
||||
$str = $function($module);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue