diff options
| author | Andrey Hristov <andrey@php.net> | 2005-04-14 16:05:05 +0000 |
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 2005-04-14 16:05:05 +0000 |
| commit | e23f62fc4fe9c3ccd68d89f1036eb4815573df48 (patch) | |
| tree | f7be80ea86778381f359ad8474bc97ac5af8a31c /ext/skeleton | |
| parent | 378776dc33deb314351eed069460569acd4b56d5 (diff) | |
| download | php-git-e23f62fc4fe9c3ccd68d89f1036eb4815573df48.tar.gz | |
- don't use short tag
- detect CLI binary and don't print < ;br < in this case
Diffstat (limited to 'ext/skeleton')
| -rw-r--r-- | ext/skeleton/skeleton.php | 10 |
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); |
