summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2009-12-08 10:16:38 +0000
committerDmitry Stogov <dmitry@php.net>2009-12-08 10:16:38 +0000
commit76c445dd73cdfe78bfaffd9cb15fbd1d80f9646b (patch)
tree1db96f26f03c8f1a88662fd5e4136180c27388df /main/main.c
parent0e218d3512da65fbc0121db2b0e13d32b218fc18 (diff)
downloadphp-git-76c445dd73cdfe78bfaffd9cb15fbd1d80f9646b.tar.gz
- Forgotten patch for trunk
- Fixed stdin filename in error messages
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c1
1 files changed, 1 insertions, 0 deletions
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
) {