]> granicus.if.org Git - php/commitdiff
Add missing function protos
authorSara Golemon <pollita@php.net>
Thu, 21 Sep 2006 23:58:06 +0000 (23:58 +0000)
committerSara Golemon <pollita@php.net>
Thu, 21 Sep 2006 23:58:06 +0000 (23:58 +0000)
Zend/zend_API.c
Zend/zend_builtin_functions.c

index 7c65a8e4d3f353ac768e28ff53f923eb1aa5a3a8..a77447dd3077bfeebfa78d2ca0d3c2ee8632df68 100644 (file)
@@ -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)
index 52fd6996e9996cf225426803bbf9c5f3aa31011d..4733f4d0cc86c727df3f78be8fb25e45bf0dd88b 100644 (file)
@@ -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