mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
To avoid confusing, as -a without readline is not actually interactive. Discussion: https://externals.io/message/114426 Closes GH-6976.
23 lines
435 B
PHP
23 lines
435 B
PHP
--TEST--
|
|
using invalid combinations of cmdline options
|
|
--EXTENSIONS--
|
|
readline
|
|
--SKIPIF--
|
|
<?php include "skipif.inc"; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$php = getenv('TEST_PHP_EXECUTABLE');
|
|
|
|
var_dump(`$php -n -a -r "echo hello;"`);
|
|
var_dump(`$php -n -r "echo hello;" -a`);
|
|
|
|
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
|