From: Dmitry Stogov Date: Wed, 10 Apr 2013 12:45:59 +0000 (+0400) Subject: Added missing ARG_INFO X-Git-Tag: php-5.5.0beta4~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b3a4afcbfc2786a075ef8a7410a495f102314ec;p=php Added missing ARG_INFO --- diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module.c index 33ccba5b86..fa4e3d85b7 100644 --- a/ext/opcache/zend_accelerator_module.c +++ b/ext/opcache/zend_accelerator_module.c @@ -41,6 +41,18 @@ static void (*orig_file_exists)(INTERNAL_FUNCTION_PARAMETERS) = NULL; static void (*orig_is_file)(INTERNAL_FUNCTION_PARAMETERS) = NULL; static void (*orig_is_readable)(INTERNAL_FUNCTION_PARAMETERS) = NULL; +ZEND_BEGIN_ARG_INFO(arginfo_opcache_none, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_opcache_get_status, 0, 0, 0) + ZEND_ARG_INFO(0, fetch_scripts) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_opcache_invalidate, 0, 0, 1) + ZEND_ARG_INFO(0, script) + ZEND_ARG_INFO(0, force) +ZEND_END_ARG_INFO() + /* User functions */ static ZEND_FUNCTION(opcache_reset); static ZEND_FUNCTION(opcache_invalidate); @@ -51,11 +63,11 @@ static ZEND_FUNCTION(opcache_get_configuration); static zend_function_entry accel_functions[] = { /* User functions */ - ZEND_FE(opcache_reset, NULL) - ZEND_FE(opcache_invalidate, NULL) + ZEND_FE(opcache_reset, arginfo_opcache_none) + ZEND_FE(opcache_invalidate, arginfo_opcache_invalidate) /* Private functions */ - ZEND_FE(opcache_get_configuration, NULL) - ZEND_FE(opcache_get_status, NULL) + ZEND_FE(opcache_get_configuration, arginfo_opcache_none) + ZEND_FE(opcache_get_status, arginfo_opcache_get_status) { NULL, NULL, NULL, 0, 0 } };