com php-src: Update run command for allowing STDIN: sapi/phpdbg/phpdbg_help.c
| From: | Bob Weinand | Date: | Wed, 05 Oct 2016 10:14:02 +0000 |
| Subject: | com php-src: Update run command for allowing STDIN: sapi/phpdbg/phpdbg_help.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94829@lists.php.net to get a copy of this message | ||
Commit: 4790da5475c80469eeaac777f3f04815648e3d96
Author: Bob Weinand <bobwei9@hotmail.com> Wed, 5 Oct 2016 12:14:02 +0200
Parents: eaff72f31b6322ff4b035b97af5ea1552b2281b7
Branches: PHP-7.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4790da5475c80469eeaac777f3f04815648e3d96
Log:
Update run command for allowing STDIN
Changed paths:
M sapi/phpdbg/phpdbg_help.c
Diff:
diff --git a/sapi/phpdbg/phpdbg_help.c b/sapi/phpdbg/phpdbg_help.c
index d01184b..a7385df 100644
--- a/sapi/phpdbg/phpdbg_help.c
+++ b/sapi/phpdbg/phpdbg_help.c
@@ -810,21 +810,19 @@ phpdbg_help_text_t phpdbg_help_text[] = {
{"run",
"Enter the vm, starting execution. Execution will then continue until the next breakpoint
"
-"or completion of the script. Add parameters you want to use as $argv" CR CR
+"or completion of the script. Add parameters you want to use as $argv. Add a trailing "
+"**< filename** for reading STDIN from a file." CR CR
"**Examples**" CR CR
" $P run" CR
" $P r" CR
" Will cause execution of the context, if it is set" CR CR
-" $P r test" CR
-" Will execute with $argv[1] == \"test\"" CR CR
+" $P r test < foo.txt" CR
+" Will execute with $argv[1] == \"test\" and read from the foo.txt file for
STDIN" CR CR
"Note that the execution context must be set. If not previously compiled, then the script will
"
-"be compiled before execution." CR CR
-
-"Note that attempting to run a script that is already executing will result in an
\"execution "
-"in progress\" error."
+"be compiled before execution."
},
{"set",