summaryrefslogtreecommitdiff
path: root/ext/skeleton
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2005-04-14 16:05:05 +0000
committerAndrey Hristov <andrey@php.net>2005-04-14 16:05:05 +0000
commite23f62fc4fe9c3ccd68d89f1036eb4815573df48 (patch)
treef7be80ea86778381f359ad8474bc97ac5af8a31c /ext/skeleton
parent378776dc33deb314351eed069460569acd4b56d5 (diff)
downloadphp-git-e23f62fc4fe9c3ccd68d89f1036eb4815573df48.tar.gz
- don't use short tag
- detect CLI binary and don't print &lt ;br &lt; in this case
Diffstat (limited to 'ext/skeleton')
-rw-r--r--ext/skeleton/skeleton.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/skeleton/skeleton.php b/ext/skeleton/skeleton.php
index 12e1e64bb4..91db9d5408 100644
--- a/ext/skeleton/skeleton.php
+++ b/ext/skeleton/skeleton.php
@@ -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);