Skip to content

Commit 8fcc938

Browse files
committed
Merge branch 'PHP-7.0' into PHP-7.1
2 parents f58cf8b + 8908df6 commit 8fcc938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/phpdbg/phpdbg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ php_stream *phpdbg_stream_url_wrap_php(php_stream_wrapper *wrapper, const char *
13221322
}
13231323

13241324
if (!strncasecmp(path, "stdin", 6) && PHPDBG_G(stdin_file)) {
1325-
php_stream *stream =stream = php_stream_fopen_from_file(PHPDBG_G(stdin_file), "r");
1325+
php_stream *stream = php_stream_fopen_from_fd(dup(fileno(PHPDBG_G(stdin_file))), "r", NULL);
13261326
#ifdef PHP_WIN32
13271327
zval *blocking_pipes = php_stream_context_get_option(context, "pipe", "blocking");
13281328
if (blocking_pipes) {

0 commit comments

Comments
 (0)