/* 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)
#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 */
#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