From 0fc8e6af0a0ff8eeb15746978ce1e6009ed76f11 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Thu, 12 Dec 2013 20:30:45 +0100 Subject: Eliminate another straight forward TSRMLS_FETCH() in zend_startup_module() # For THTTPD: # The code that uses a call to this function is for older versions of PHP anyway so its not covered # For Zend OpCache: # Added a new define for 5.6 and wrapped the code around that so its still compatible with older version --- Zend/zend_API.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Zend/zend_API.c') diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 18f151e0ef..b3f59a71f1 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -2313,10 +2313,8 @@ ZEND_API void zend_unregister_functions(const zend_function_entry *functions, in } /* }}} */ -ZEND_API int zend_startup_module(zend_module_entry *module) /* {{{ */ +ZEND_API int zend_startup_module(zend_module_entry *module TSRMLS_DC) /* {{{ */ { - TSRMLS_FETCH(); - if ((module = zend_register_internal_module(module TSRMLS_CC)) != NULL && zend_startup_module_ex(module TSRMLS_CC) == SUCCESS) { return SUCCESS; } -- cgit v1.2.1