Browse Source

- Forgotten patch for trunk

- Fixed stdin filename in error messages
experimental/the_5_4_that_isnt_5_4
Dmitry Stogov 17 years ago
parent
commit
76c445dd73
  1. 1
      main/main.c

1
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 * otherwise it will get opened and added to the included_files list in zend_execute_scripts
*/ */
if (primary_file->filename && if (primary_file->filename &&
(primary_file->filename[0] != '-' || primary_file->filename[1] != 0) &&
primary_file->opened_path == NULL && primary_file->opened_path == NULL &&
primary_file->type != ZEND_HANDLE_FILENAME primary_file->type != ZEND_HANDLE_FILENAME
) { ) {

Loading…
Cancel
Save