]> granicus.if.org Git - php/commitdiff
Added missing ARG_INFO
authorDmitry Stogov <dmitry@zend.com>
Wed, 10 Apr 2013 12:45:59 +0000 (16:45 +0400)
committerDmitry Stogov <dmitry@zend.com>
Wed, 10 Apr 2013 12:45:59 +0000 (16:45 +0400)
ext/opcache/zend_accelerator_module.c

index 33ccba5b86ba6eae531144ebeeba8e98ba8eeb74..fa4e3d85b78dbeca2a944c505fab8d7e8ac8e493 100644 (file)
@@ -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 }
 };