Skip to content

Commit 3ea3bba

Browse files
committed
- Fix ZTS build
1 parent 1a1178a commit 3ea3bba

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Zend/zend_API.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,7 +1685,7 @@ static void zend_sort_modules(void *base, size_t count, size_t siz, compare_func
16851685
}
16861686
/* }}} */
16871687

1688-
static void zend_collect_module_handlers(void) /* {{{ */
1688+
static void zend_collect_module_handlers(TSRMLS_D) /* {{{ */
16891689
{
16901690
HashPosition pos;
16911691
zend_module_entry *module;
@@ -1767,7 +1767,7 @@ ZEND_API int zend_startup_modules(TSRMLS_D) /* {{{ */
17671767
{
17681768
zend_hash_sort(&module_registry, zend_sort_modules, NULL, 0 TSRMLS_CC);
17691769
zend_hash_apply(&module_registry, (apply_func_t)zend_startup_module_ex TSRMLS_CC);
1770-
zend_collect_module_handlers();
1770+
zend_collect_module_handlers(TSRMLS_C);
17711771
return SUCCESS;
17721772
}
17731773
/* }}} */

Zend/zend_compile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ ZEND_API void zend_destroy_file_handle(zend_file_handle *file_handle TSRMLS_DC);
616616
ZEND_API int zend_cleanup_class_data(zend_class_entry **pce TSRMLS_DC);
617617
ZEND_API int zend_cleanup_user_class_data(zend_class_entry **pce TSRMLS_DC);
618618
ZEND_API void zend_cleanup_internal_class_data(zend_class_entry *ce TSRMLS_DC);
619-
ZEND_API void zend_cleanup_internal_classes(TSRMLS_C);
619+
ZEND_API void zend_cleanup_internal_classes(TSRMLS_D);
620620
ZEND_API int zend_cleanup_function_data(zend_function *function TSRMLS_DC);
621621
ZEND_API int zend_cleanup_function_data_full(zend_function *function TSRMLS_DC);
622622

Zend/zend_opcode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static inline void cleanup_internal_class_data(zend_class_entry *ce TSRMLS_DC)
190190
}
191191
efree(CE_STATIC_MEMBERS(ce));
192192
#ifdef ZTS
193-
CG(static_members_table)[(zend_intptr_t)((ce->static_members_table)] = NULL;
193+
CG(static_members_table)[(zend_intptr_t)(ce->static_members_table)] = NULL;
194194
#else
195195
ce->static_members_table = NULL;
196196
#endif

0 commit comments

Comments
 (0)