cvs: ZendEngine2 / zend_builtin_functions.c
| From: | Derick Rethans | Date: | Sat, 28 Sep 2002 15:12:42 +0000 |
| Subject: | cvs: ZendEngine2 / zend_builtin_functions.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-455@lists.php.net to get a copy of this message | ||
derick Sat Sep 28 11:12:42 2002 EDT
Modified files:
/ZendEngine2 zend_builtin_functions.c
Log:
- Fix build in non-ZTS mode
Index: ZendEngine2/zend_builtin_functions.c
diff -u ZendEngine2/zend_builtin_functions.c:1.150 ZendEngine2/zend_builtin_functions.c:1.151
--- ZendEngine2/zend_builtin_functions.c:1.150 Thu Sep 26 14:56:11 2002
+++ ZendEngine2/zend_builtin_functions.c Sat Sep 28 11:12:41 2002
@@ -70,8 +70,10 @@
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,8 +127,10 @@
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,10 +1188,12 @@
}
+#ifdef ZTS
ZEND_FUNCTION(zend_thread_id)
{
RETURN_LONG(tsrm_thread_id());
}
+#endif
#endif
/* {{{ proto string get_resource_type(resource res)