Skip to content

Commit e23f62f

Browse files
committed
- don't use short tag
- detect CLI binary and don't print &lt ;br < in this case
1 parent 378776d commit e23f62f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ext/skeleton/skeleton.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
<?
1+
<?php
2+
$br = (php_sapi_name() == "cli")? "":"<br>";
3+
24
if(!extension_loaded('extname')) {
35
dl('extname.' . PHP_SHLIB_SUFFIX);
46
}
57
$module = 'extname';
68
$functions = get_extension_funcs($module);
7-
echo "Functions available in the test extension:<br>\n";
9+
echo "Functions available in the test extension:$br\n";
810
foreach($functions as $func) {
9-
echo $func."<br>\n";
11+
echo $func."$br\n";
1012
}
11-
echo "<br>\n";
13+
echo "$br\n";
1214
$function = 'confirm_' . $module . '_compiled';
1315
if (extension_loaded($module)) {
1416
$str = $function($module);

0 commit comments

Comments
 (0)