]> granicus.if.org Git - php/commitdiff
- Fix build in non-ZTS mode
authorDerick Rethans <derick@php.net>
Sat, 28 Sep 2002 15:12:41 +0000 (15:12 +0000)
committerDerick Rethans <derick@php.net>
Sat, 28 Sep 2002 15:12:41 +0000 (15:12 +0000)
Zend/zend_builtin_functions.c

index a32b3487ca829e6ad000d97b1902d399de18db0e..ce793e6c89e8bb18a032b5bd65806a1ca1e619cb 100644 (file)
@@ -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 */