]> 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 e553708cc22df80cff27755b3997674454ae16a9..464ffc694ea5a444025fdec01de35c8a783e30da 100644 (file)
@@ -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
                ) {