mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_backticks_as_an_alias_for_shell_exec
27 lines
493 B
PHP
27 lines
493 B
PHP
--TEST--
|
|
using invalid combinations of cmdline options
|
|
--EXTENSIONS--
|
|
readline
|
|
--SKIPIF--
|
|
<?php include "skipif.inc"; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$php = getenv('TEST_PHP_EXECUTABLE_ESCAPED');
|
|
|
|
var_dump(shell_exec(<<<SHELL
|
|
$php -n -a -r "echo hello;"
|
|
SHELL));
|
|
var_dump(shell_exec(<<<SHELL
|
|
$php -n -r "echo hello;" -a
|
|
SHELL));
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECT--
|
|
string(57) "Either execute direct code, process stdin or use a file.
|
|
"
|
|
string(57) "Either execute direct code, process stdin or use a file.
|
|
"
|
|
Done
|