new line on the output end if v-php-func called directly from shell

This commit is contained in:
myvesta 2023-03-28 10:39:38 +02:00 committed by GitHub
commit b1a3b88877
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View file

@ -54,7 +54,7 @@ function myvesta_fix_args() {
}
function myvesta_exit($code) {
global $argv;
// global $argv;
// echo "==================== ".$argv[0].": ".$code." ====================\n";
exit($code);
}
@ -62,6 +62,5 @@ function myvesta_exit($code) {
function myvesta_test_func () {
$args=func_get_args();
echo "You said: ";
print_r ($args);
echo "\n";
echo trim(print_r ($args, true));
}