diff options
Diffstat (limited to 'main/main.c')
-rw-r--r-- | main/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/main.c b/main/main.c index 5e05ac0018..85f68371b6 100644 --- a/main/main.c +++ b/main/main.c @@ -565,6 +565,7 @@ static FILE *php_fopen_wrapper_for_zend(const char *filename, char **opened_path { FILE *retval = NULL; php_stream *stream; + TSRMLS_FETCH(); stream = php_stream_open_wrapper((char *)filename, "rb", USE_PATH|IGNORE_URL_WIN|REPORT_ERRORS, opened_path); if (stream) { @@ -951,7 +952,7 @@ int php_module_startup(sapi_module_struct *sf) /* initialize stream wrappers registry * (this uses configuration parameters from php.ini) */ - if (php_init_stream_wrappers() == FAILURE) { + if (php_init_stream_wrappers(TSRMLS_C) == FAILURE) { php_printf("PHP: Unable to initialize stream url wrappers.\n"); return FAILURE; } @@ -1056,7 +1057,7 @@ void php_module_shutdown(TSRMLS_D) zend_shutdown(TSRMLS_C); - php_shutdown_stream_wrappers(); + php_shutdown_stream_wrappers(TSRMLS_C); php_shutdown_info_logos(); UNREGISTER_INI_ENTRIES(); |