andrey Thu Apr 14 12:05:07 2005 EDT
Modified files:
/php-src/ext/skeleton skeleton.php
Log:
- don't use short tag
- detect CLI binary and don't print < ;br < in this case
http://cvs.php.net/diff.php/php-src/ext/skeleton/skeleton.php?r1=1.7&r2=1.8&ty=u
Index: php-src/ext/skeleton/skeleton.php
diff -u php-src/ext/skeleton/skeleton.php:1.7
php-src/ext/skeleton/skeleton.php:1.8
--- php-src/ext/skeleton/skeleton.php:1.7 Sun Jun 29 12:07:18 2003
+++ php-src/ext/skeleton/skeleton.php Thu Apr 14 12:05:05 2005
@@ -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);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php