From: Dmitry Stogov Date: Tue, 8 Dec 2009 10:16:38 +0000 (+0000) Subject: - Forgotten patch for trunk X-Git-Tag: php-5.2.12RC4~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f79bc0ac21eb0d74e5157a42cb08f917afd40436;p=php - Forgotten patch for trunk - Fixed stdin filename in error messages --- diff --git a/main/main.c b/main/main.c index e6be4a2d43..7ffeaf7d4d 100644 --- a/main/main.c +++ b/main/main.c @@ -1994,6 +1994,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 ) {