From 34f5bd514cc590444ead0c7c5dc6a4b77abd5339 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Sat, 28 Sep 2002 15:12:41 +0000 Subject: [PATCH] - Fix build in non-ZTS mode --- Zend/zend_builtin_functions.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index a32b3487ca..ce793e6c89 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -70,8 +70,10 @@ static ZEND_FUNCTION(get_defined_constants); static ZEND_FUNCTION(debug_backtrace); #if ZEND_DEBUG static ZEND_FUNCTION(zend_test_func); +#if ZEND_ZTS static ZEND_FUNCTION(zend_thread_id); #endif +#endif ZEND_API unsigned char first_arg_force_ref[] = { 1, BYREF_FORCE }; ZEND_API unsigned char second_arg_force_ref[] = { 2, BYREF_NONE, BYREF_FORCE }; @@ -125,7 +127,9 @@ static zend_function_entry builtin_functions[] = { ZEND_FE(debug_backtrace, NULL) #if ZEND_DEBUG ZEND_FE(zend_test_func, NULL) +#if ZTS ZEND_FE(zend_thread_id, NULL) +#endif #endif { NULL, NULL, NULL } }; @@ -1184,11 +1188,13 @@ ZEND_FUNCTION(zend_test_func) } +#ifdef ZTS ZEND_FUNCTION(zend_thread_id) { RETURN_LONG(tsrm_thread_id()); } #endif +#endif /* {{{ proto string get_resource_type(resource res) Get the resource type name for a given resource */ -- 2.40.0