diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 99831a1f4211..61df53764a75 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -3751,8 +3751,6 @@ PHP_RINIT_FUNCTION(basic) /* {{{ */ /* Default to global filters only */ FG(stream_filters) = NULL; - FG(wrapper_errors) = NULL; - return SUCCESS; } /* }}} */ diff --git a/ext/standard/file.c b/ext/standard/file.c index 44d3a4e6a96b..7147e982581b 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -162,6 +162,7 @@ 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; + FG(wrapper_errors) = NULL; } static void file_globals_dtor(php_file_globals *file_globals_p TSRMLS_DC)