cvs: ZendEngine2 / zend_builtin_functions.c

From: Date: Wed, 18 Sep 2002 14:08:07 +0000
Subject: cvs: ZendEngine2 / zend_builtin_functions.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-436@lists.php.net to get a copy of this message
zeev Wed Sep 18 10:08:07 2002 EDT Modified files: /ZendEngine2 zend_builtin_functions.c Log: Add useful debugging function Index: ZendEngine2/zend_builtin_functions.c diff -u ZendEngine2/zend_builtin_functions.c:1.148 ZendEngine2/zend_builtin_functions.c:1.149 --- ZendEngine2/zend_builtin_functions.c:1.148 Sun Sep 15 21:36:48 2002 +++ ZendEngine2/zend_builtin_functions.c Wed Sep 18 10:08:07 2002 @@ -70,6 +70,7 @@ static ZEND_FUNCTION(debug_backtrace); #if ZEND_DEBUG static ZEND_FUNCTION(zend_test_func); +static ZEND_FUNCTION(zend_thread_id); #endif ZEND_API unsigned char first_arg_force_ref[] = { 1, BYREF_FORCE }; @@ -124,6 +125,7 @@ ZEND_FE(debug_backtrace, NULL) #if ZEND_DEBUG ZEND_FE(zend_test_func, NULL) + ZEND_FE(zend_thread_id, NULL) #endif { NULL, NULL, NULL } }; @@ -1179,6 +1181,12 @@ zval *arg1, *arg2; zend_get_parameters(ht, 2, &arg1, &arg2); +} + + +ZEND_FUNCTION(zend_thread_id) +{ + RETURN_LONG(tsrm_thread_id()); } #endif

« previous php.zend-engine.cvs (#436) next »