summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorAndrea Faulds <ajf@ajf.me>2016-03-20 22:07:14 +0000
committerJoe Watkins <krakjoe@php.net>2016-11-12 17:26:20 +0000
commit3ed8b7a87b5383f9ba99a0bbcea6e9fe7a070946 (patch)
treec8fec1c491c5a7f0e45552795ae4d144e806e4d4 /sapi/cli/php_cli.c
parenta103aa2dbd9fe4261e7ebbafb00ff5283c7fb5e5 (diff)
downloadphp-git-3ed8b7a87b5383f9ba99a0bbcea6e9fe7a070946.tar.gz
Use "Standard input code" instead of "php://stdin"
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 28a5a7c108..65a0a63505 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -945,7 +945,7 @@ static int do_cli(int argc, char **argv) /* {{{ */
/* here but this would make things only more complicated. And it */
/* is consitent with the way -R works where the stdin file handle*/
/* is also accessible. */
- file_handle.filename = "php://stdin";
+ file_handle.filename = "Standard input code";
file_handle.handle.fp = stdin;
}
file_handle.type = ZEND_HANDLE_FP;
@@ -984,7 +984,7 @@ static int do_cli(int argc, char **argv) /* {{{ */
PG(during_request_startup) = 0;
switch (behavior) {
case PHP_MODE_STANDARD:
- if (strcmp(file_handle.filename, "php://stdin")) {
+ if (strcmp(file_handle.filename, "Standard input code")) {
cli_register_file_handles();
}