1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/sapi/cli/tests/004.phpt

33 lines
601 B
PHP

--TEST--
show information about function
--SKIPIF--
<?php
include "skipif.inc";
?>
--FILE--
<?php
$php = getenv('TEST_PHP_EXECUTABLE_ESCAPED');
var_dump(shell_exec("$php -n --rf unknown"));
var_dump(shell_exec("$php -n --rf echo"));
var_dump(shell_exec("$php -n --rf phpinfo"));
echo "Done\n";
?>
--EXPECT--
string(45) "Exception: Function unknown() does not exist
"
string(42) "Exception: Function echo() does not exist
"
string(155) "Function [ <internal:standard> function phpinfo ] {
- Parameters [1] {
Parameter #0 [ <optional> int $flags = INFO_ALL ]
}
- Return [ true ]
}
"
Done