]> granicus.if.org Git - php/commitdiff
- Forgotten patch for trunk
authorDmitry Stogov <dmitry@php.net>
Tue, 8 Dec 2009 10:16:38 +0000 (10:16 +0000)
committerDmitry Stogov <dmitry@php.net>
Tue, 8 Dec 2009 10:16:38 +0000 (10:16 +0000)
- Fixed stdin filename in error messages

main/main.c

index e6be4a2d434909c7d660f946eeb16a34bc14531c..7ffeaf7d4dbc87b31a0143cf39f9c9c7f428fae4 100644 (file)
@@ -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
                ) {