diff options
author | Felipe Pena <felipe@php.net> | 2008-08-15 19:47:33 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-08-15 19:47:33 +0000 |
commit | 85ab4235655b1feef3afe0b64a73e41f670743fd (patch) | |
tree | f922fdc60d0536312c1a269d390c82996180e1d4 /main/main.c | |
parent | 5bf4d72487224624f4fdb523fda351259fe5d469 (diff) | |
download | php-git-85ab4235655b1feef3afe0b64a73e41f670743fd.tar.gz |
- MFH: Removed some TSRMLS_FETCH()s
Diffstat (limited to 'main/main.c')
-rw-r--r-- | main/main.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/main/main.c b/main/main.c index 3662e90687..f9f65d2cb0 100644 --- a/main/main.c +++ b/main/main.c @@ -1039,10 +1039,8 @@ PHP_FUNCTION(set_time_limit) /* {{{ php_fopen_wrapper_for_zend */ -static FILE *php_fopen_wrapper_for_zend(const char *filename, char **opened_path) +static FILE *php_fopen_wrapper_for_zend(const char *filename, char **opened_path TSRMLS_DC) { - TSRMLS_FETCH(); - return php_stream_open_wrapper_as_file((char *)filename, "rb", ENFORCE_SAFE_MODE|USE_PATH|IGNORE_URL_WIN|REPORT_ERRORS|STREAM_OPEN_FOR_INCLUDE, opened_path); } /* }}} */ @@ -1134,10 +1132,8 @@ static int php_get_configuration_directive_for_zend(char *name, uint name_length /* {{{ php_message_handler_for_zend */ -static void php_message_handler_for_zend(long message, void *data) +static void php_message_handler_for_zend(long message, void *data TSRMLS_DC) { - TSRMLS_FETCH(); - switch (message) { case ZMSG_FAILED_INCLUDE_FOPEN: php_error_docref("function.include" TSRMLS_CC, E_WARNING, "Failed opening '%s' for inclusion (include_path='%s')", php_strip_url_passwd((char *) data), STR_PRINT(PG(include_path))); @@ -1723,7 +1719,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod zuf.vspprintf_function = vspprintf; zuf.getenv_function = sapi_getenv; zuf.resolve_path_function = php_resolve_path_for_zend; - zend_startup(&zuf, NULL, 1); + zend_startup(&zuf, NULL, 1 TSRMLS_CC); #ifdef ZTS executor_globals = ts_resource(executor_globals_id); |