From: Sara Golemon Date: Thu, 21 Sep 2006 23:58:06 +0000 (+0000) Subject: Add missing function protos X-Git-Tag: RELEASE_1_0_0RC1~1592 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b24a795a6a1f603f8616914efe9099de46639e2;p=php Add missing function protos --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 7c65a8e4d3..a77447dd30 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -2366,11 +2366,13 @@ ZEND_API int zend_set_hash_symbol(zval *symbol, char *name, int name_length, /* Disabled functions support */ +/* {{{ proto void display_disabled_function(void) U +Dummy function which displays an error when a disabled function is called. */ ZEND_API ZEND_FUNCTION(display_disabled_function) { zend_error(E_WARNING, "%v() has been disabled for security reasons", get_active_function_name(TSRMLS_C)); } - +/* }}} */ static zend_function_entry disabled_function[] = { ZEND_FE(display_disabled_function, NULL) diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 52fd6996e9..4733f4d0cc 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -1170,12 +1170,15 @@ ZEND_FUNCTION(leak) #ifdef ZEND_TEST_EXCEPTIONS +/* {{{ proto void crash(void) U +Cause the process to crash by copying data to an inaccesible location */ ZEND_FUNCTION(crash) { char *nowhere=NULL; memcpy(nowhere, "something", sizeof("something")); } +/* }}} */ #endif #endif /* ZEND_DEBUG */ @@ -1565,19 +1568,24 @@ ZEND_FUNCTION(create_function) #if ZEND_DEBUG +/* {{{ proto void zend_test_func(mixed arg1, mixed arg2) U +Generic test function */ ZEND_FUNCTION(zend_test_func) { zval *arg1, *arg2; zend_get_parameters(ht, 2, &arg1, &arg2); } - +/* }}} */ #ifdef ZTS +/* {{{ proto int zend_thread_id(void) U +Returns a unique identifier for the current thread */ ZEND_FUNCTION(zend_thread_id) { RETURN_LONG(tsrm_thread_id()); } +/* }}} */ #endif #endif