summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard')
-rw-r--r--ext/standard/file.c1
-rw-r--r--ext/standard/file.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index b3d2fb539f..38497a4a71 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -132,6 +132,7 @@ static ZEND_RSRC_DTOR_FUNC(file_context_dtor)
static void file_globals_ctor(php_file_globals *file_globals_p TSRMLS_DC)
{
FG(pclose_ret) = 0;
+ FG(user_stream_current_filename) = NULL;
FG(def_chunk_size) = PHP_SOCK_CHUNK_SIZE;
}
diff --git a/ext/standard/file.h b/ext/standard/file.h
index 3990504509..4e5eba55dd 100644
--- a/ext/standard/file.h
+++ b/ext/standard/file.h
@@ -115,6 +115,7 @@ typedef struct {
int auto_detect_line_endings;
int default_socket_timeout;
char *user_agent;
+ char *user_stream_current_filename; /* for simple recursion protection */
} php_file_globals;
#ifdef ZTS