From 76c445dd73cdfe78bfaffd9cb15fbd1d80f9646b Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 8 Dec 2009 10:16:38 +0000 Subject: [PATCH] - Forgotten patch for trunk - Fixed stdin filename in error messages --- main/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/main.c b/main/main.c index e553708cc2..464ffc694e 100644 --- a/main/main.c +++ b/main/main.c @@ -2191,6 +2191,7 @@ PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC) * otherwise it will get opened and added to the included_files list in zend_execute_scripts */ if (primary_file->filename && + (primary_file->filename[0] != '-' || primary_file->filename[1] != 0) && primary_file->opened_path == NULL && primary_file->type != ZEND_HANDLE_FILENAME ) { -- 2.50.1