]> granicus.if.org Git - php/commitdiff
- Added arginfo (functions)
authorFelipe Pena <felipe@php.net>
Thu, 3 Jul 2008 01:55:48 +0000 (01:55 +0000)
committerFelipe Pena <felipe@php.net>
Thu, 3 Jul 2008 01:55:48 +0000 (01:55 +0000)
ext/recode/recode.c
ext/shmop/shmop.c
ext/spl/php_spl.c
ext/tidy/tidy.c
ext/zip/php_zip.c
ext/zlib/zlib.c

index 59f3d5c8939b380f404f6838c7c5b2a695f3af5f..79fb5cb3005938068d7b27c9a96cbd8257bfe631 100644 (file)
@@ -66,11 +66,26 @@ ZEND_END_MODULE_GLOBALS(recode)
 ZEND_DECLARE_MODULE_GLOBALS(recode);
 static PHP_GINIT_FUNCTION(recode);
 
+/* {{{ arginfo */
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_recode_string, 0, 0, 2)
+       ZEND_ARG_INFO(0, request)
+       ZEND_ARG_INFO(0, str)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_recode_file, 0, 0, 3)
+       ZEND_ARG_INFO(0, request)
+       ZEND_ARG_INFO(0, input)
+       ZEND_ARG_INFO(0, output)
+ZEND_END_ARG_INFO()
+/* }}} */
+
 /* {{{ module stuff */
 static const zend_function_entry php_recode_functions[] = {
-       PHP_FE(recode_string, NULL)
-       PHP_FE(recode_file, NULL)
-       PHP_FALIAS(recode, recode_string, NULL)
+       PHP_FE(recode_string,   arginfo_recode_string)
+       PHP_FE(recode_file,     arginfo_recode_file)
+       PHP_FALIAS(recode, recode_string, arginfo_recode_string)
        {NULL, NULL, NULL}
 };
 
index 24ddaccf5e319afbc1dc83ef1c24040aed6107f3..abdcf3547b704485cff56bff2a3e1628d2db9ce8 100644 (file)
@@ -45,15 +45,54 @@ php_shmop_globals shmop_globals;
 
 int shm_type;
 
+/* {{{ arginfo */
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_open, 0, 0, 4)
+       ZEND_ARG_INFO(0, key)
+       ZEND_ARG_INFO(0, flags)
+       ZEND_ARG_INFO(0, mode)
+       ZEND_ARG_INFO(0, size)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_read, 0, 0, 3)
+       ZEND_ARG_INFO(0, shmid)
+       ZEND_ARG_INFO(0, start)
+       ZEND_ARG_INFO(0, count)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_close, 0, 0, 1)
+       ZEND_ARG_INFO(0, shmid)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_size, 0, 0, 1)
+       ZEND_ARG_INFO(0, shmid)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_write, 0, 0, 3)
+       ZEND_ARG_INFO(0, shmid)
+       ZEND_ARG_INFO(0, data)
+       ZEND_ARG_INFO(0, offset)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_delete, 0, 0, 1)
+       ZEND_ARG_INFO(0, shmid)
+ZEND_END_ARG_INFO()
+/* }}} */
+
 /* {{{ shmop_functions[] 
  */
 const zend_function_entry shmop_functions[] = {
-       PHP_FE(shmop_open, NULL)
-       PHP_FE(shmop_read, NULL)
-       PHP_FE(shmop_close, NULL)
-       PHP_FE(shmop_size, NULL)
-       PHP_FE(shmop_write, NULL)
-       PHP_FE(shmop_delete, NULL)
+       PHP_FE(shmop_open,              arginfo_shmop_open)
+       PHP_FE(shmop_read,              arginfo_shmop_read)
+       PHP_FE(shmop_close,     arginfo_shmop_close)
+       PHP_FE(shmop_size,              arginfo_shmop_size)
+       PHP_FE(shmop_write,     arginfo_shmop_write)
+       PHP_FE(shmop_delete,    arginfo_shmop_delete)
        {NULL, NULL, NULL}      /* Must be the last line in shmop_functions[] */
 };
 /* }}} */
index 34ab2d192d07b77f3e825bd604c8fad2f43d5188..40612c126cd43824e946a95239898e77cc4aa9db 100755 (executable)
@@ -731,6 +731,7 @@ PHP_MINFO_FUNCTION(spl)
 }
 /* }}} */
 
+/* {{{ arginfo */
 static
 ZEND_BEGIN_ARG_INFO_EX(arginfo_iterator_to_array, 0, 0, 1)
        ZEND_ARG_OBJ_INFO(0, iterator, Traversable, 0)
@@ -749,19 +750,70 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_iterator_apply, 0, 0, 2)
        ZEND_ARG_ARRAY_INFO(0, args, 1)
 ZEND_END_ARG_INFO();
 
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_class_parents, 0, 0, 1)
+       ZEND_ARG_INFO(0, instance)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_class_implements, 0, 0, 1)
+       ZEND_ARG_INFO(0, what)
+       ZEND_ARG_INFO(0, autoload)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_spl_classes, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_spl_autoload_functions, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_spl_autoload, 0, 0, 1)
+       ZEND_ARG_INFO(0, class_name)
+       ZEND_ARG_INFO(0, file_extensions)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_spl_autoload_extensions, 0, 0, 0)
+       ZEND_ARG_INFO(0, file_extensions)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_spl_autoload_call, 0, 0, 1)
+       ZEND_ARG_INFO(0, class_name)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_spl_autoload_register, 0, 0, 0)
+       ZEND_ARG_INFO(0, autoload_function)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_spl_autoload_unregister, 0, 0, 1)
+       ZEND_ARG_INFO(0, autoload_function)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_spl_object_hash, 0, 0, 1)
+       ZEND_ARG_INFO(0, obj)
+ZEND_END_ARG_INFO()
+/* }}} */
+
 /* {{{ spl_functions
  */
 const zend_function_entry spl_functions[] = {
-       PHP_FE(spl_classes,             NULL)
-       PHP_FE(spl_autoload,            NULL)
-       PHP_FE(spl_autoload_extensions, NULL)
-       PHP_FE(spl_autoload_register,   NULL)
-       PHP_FE(spl_autoload_unregister, NULL)
-       PHP_FE(spl_autoload_functions,  NULL)
-       PHP_FE(spl_autoload_call,       NULL)
-       PHP_FE(class_parents,           NULL)
-       PHP_FE(class_implements,        NULL)
-       PHP_FE(spl_object_hash,         NULL)
+       PHP_FE(spl_classes,             arginfo_spl_classes)
+       PHP_FE(spl_autoload,            arginfo_spl_autoload)
+       PHP_FE(spl_autoload_extensions, arginfo_spl_autoload_extensions)
+       PHP_FE(spl_autoload_register,   arginfo_spl_autoload_register)
+       PHP_FE(spl_autoload_unregister, arginfo_spl_autoload_unregister)
+       PHP_FE(spl_autoload_functions,  arginfo_spl_autoload_functions)
+       PHP_FE(spl_autoload_call,       arginfo_spl_autoload_call)
+       PHP_FE(class_parents,           arginfo_class_parents)
+       PHP_FE(class_implements,        arginfo_class_implements)
+       PHP_FE(spl_object_hash,         arginfo_spl_object_hash)
 #ifdef SPL_ITERATORS_H
        PHP_FE(iterator_to_array,       arginfo_iterator_to_array)
        PHP_FE(iterator_count,          arginfo_iterator)
index 7c39854f296d6cb8defb03e20eb703d503e1876d..6b0c0b78a3bdd2d0eca9ee35918510be471852d3 100644 (file)
@@ -277,34 +277,159 @@ STD_PHP_INI_ENTRY("tidy.default_config", "",     PHP_INI_SYSTEM,         OnUpdateString,         d
 PHP_INI_ENTRY("tidy.clean_output",     "0",    PHP_INI_PERDIR,         NULL)
 PHP_INI_END()
 
+/* {{{ arginfo */
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_parse_string, 0, 0, 1)
+       ZEND_ARG_INFO(0, input)
+       ZEND_ARG_INFO(0, config_options)
+       ZEND_ARG_INFO(0, encoding)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_get_error_buffer, 0, 0, 0)
+       ZEND_ARG_INFO(0, detailed)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_get_output, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_parse_file, 0, 0, 1)
+       ZEND_ARG_INFO(0, file)
+       ZEND_ARG_INFO(0, config_options)
+       ZEND_ARG_INFO(0, encoding)
+       ZEND_ARG_INFO(0, use_include_path)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_clean_repair, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_repair_string, 0, 0, 1)
+       ZEND_ARG_INFO(0, data)
+       ZEND_ARG_INFO(0, config_file)
+       ZEND_ARG_INFO(0, encoding)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_repair_file, 0, 0, 1)
+       ZEND_ARG_INFO(0, filename)
+       ZEND_ARG_INFO(0, config_file)
+       ZEND_ARG_INFO(0, encoding)
+       ZEND_ARG_INFO(0, use_include_path)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_diagnose, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_get_release, 0)
+ZEND_END_ARG_INFO()
+
+#if HAVE_TIDYOPTGETDOC
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_get_opt_doc, 0, 0, 2)
+       ZEND_ARG_INFO(0, resource)
+       ZEND_ARG_INFO(0, optname)
+ZEND_END_ARG_INFO()
+#endif
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_get_config, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_get_status, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_get_html_ver, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_is_xhtml, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_is_xml, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_error_count, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_warning_count, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_access_count, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_config_count, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_getopt, 0, 0, 1)
+       ZEND_ARG_INFO(0, option)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_get_root, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_get_html, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_tidy_get_head, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_get_body, 0, 0, 1)
+       ZEND_ARG_INFO(0, tidy)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_ob_tidyhandler, 0, 0, 1)
+       ZEND_ARG_INFO(0, input)
+       ZEND_ARG_INFO(0, mode)
+ZEND_END_ARG_INFO()
+/* }}} */
+
 static const zend_function_entry tidy_functions[] = {
-       PHP_FE(tidy_getopt,             NULL)
-       PHP_FE(tidy_parse_string,       NULL)
-       PHP_FE(tidy_parse_file,         NULL)
-       PHP_FE(tidy_get_output,         NULL)
-       PHP_FE(tidy_get_error_buffer,   NULL
-       PHP_FE(tidy_clean_repair,       NULL)
-       PHP_FE(tidy_repair_string,      NULL)
-       PHP_FE(tidy_repair_file,        NULL)
-       PHP_FE(tidy_diagnose,           NULL)
-       PHP_FE(tidy_get_release,        NULL)
-       PHP_FE(tidy_get_config,         NULL)
-       PHP_FE(tidy_get_status,         NULL)
-       PHP_FE(tidy_get_html_ver,       NULL)
-       PHP_FE(tidy_is_xhtml,           NULL)
-       PHP_FE(tidy_is_xml,             NULL)
-       PHP_FE(tidy_error_count,        NULL)
-       PHP_FE(tidy_warning_count,      NULL)
-       PHP_FE(tidy_access_count,       NULL)
-       PHP_FE(tidy_config_count,       NULL
+       PHP_FE(tidy_getopt,             arginfo_tidy_getopt)
+       PHP_FE(tidy_parse_string,       arginfo_tidy_parse_string)
+       PHP_FE(tidy_parse_file,         arginfo_tidy_parse_file)
+       PHP_FE(tidy_get_output,         arginfo_tidy_get_output)
+       PHP_FE(tidy_get_error_buffer,   arginfo_tidy_get_error_buffer
+       PHP_FE(tidy_clean_repair,       arginfo_tidy_clean_repair)
+       PHP_FE(tidy_repair_string,      arginfo_tidy_repair_string)
+       PHP_FE(tidy_repair_file,        arginfo_tidy_repair_file)
+       PHP_FE(tidy_diagnose,           arginfo_tidy_diagnose)
+       PHP_FE(tidy_get_release,        arginfo_tidy_get_release)
+       PHP_FE(tidy_get_config,         arginfo_tidy_get_config)
+       PHP_FE(tidy_get_status,         arginfo_tidy_get_status)
+       PHP_FE(tidy_get_html_ver,       arginfo_tidy_get_html_ver)
+       PHP_FE(tidy_is_xhtml,           arginfo_tidy_is_xhtml)
+       PHP_FE(tidy_is_xml,             arginfo_tidy_is_xml)
+       PHP_FE(tidy_error_count,        arginfo_tidy_error_count)
+       PHP_FE(tidy_warning_count,      arginfo_tidy_warning_count)
+       PHP_FE(tidy_access_count,       arginfo_tidy_access_count)
+       PHP_FE(tidy_config_count,       arginfo_tidy_config_count
 #if HAVE_TIDYOPTGETDOC
-       PHP_FE(tidy_get_opt_doc,        NULL)
+       PHP_FE(tidy_get_opt_doc,        arginfo_tidy_get_opt_doc)
 #endif
-       PHP_FE(tidy_get_root,           NULL)
-       PHP_FE(tidy_get_head,           NULL)
-       PHP_FE(tidy_get_html,           NULL)
-       PHP_FE(tidy_get_body,           NULL)
-       PHP_FE(ob_tidyhandler,          NULL)
+       PHP_FE(tidy_get_root,           arginfo_tidy_get_root)
+       PHP_FE(tidy_get_head,           arginfo_tidy_get_head)
+       PHP_FE(tidy_get_html,           arginfo_tidy_get_html)
+       PHP_FE(tidy_get_body,           arginfo_tidy_get_body)
+       PHP_FE(ob_tidyhandler,          arginfo_ob_tidyhandler)
        {NULL, NULL, NULL}
 };
 
index 4e5db1a232b6d33dc40e5e98f197d36cefb56016..a53709fc0a0bbc48e9990db5dccb4282897ed818 100644 (file)
@@ -607,18 +607,73 @@ int php_zip_pcre(char *regexp, int regexp_len, char *path, int path_len, zval *r
 
 #endif
 
+/* {{{ arginfo */
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_open, 0, 0, 1)
+       ZEND_ARG_INFO(0, filename)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_close, 0, 0, 1)
+       ZEND_ARG_INFO(0, zip)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_read, 0, 0, 1)
+       ZEND_ARG_INFO(0, zip)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_entry_open, 0, 0, 2)
+       ZEND_ARG_INFO(0, zip_dp)
+       ZEND_ARG_INFO(0, zip_entry)
+       ZEND_ARG_INFO(0, mode)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_entry_close, 0, 0, 1)
+       ZEND_ARG_INFO(0, zip_ent)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_entry_read, 0, 0, 1)
+       ZEND_ARG_INFO(0, zip_entry)
+       ZEND_ARG_INFO(0, len)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_entry_name, 0, 0, 1)
+       ZEND_ARG_INFO(0, zip_entry)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_entry_compressedsize, 0, 0, 1)
+       ZEND_ARG_INFO(0, zip_entry)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_entry_filesize, 0, 0, 1)
+       ZEND_ARG_INFO(0, zip_entry)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_entry_compressionmethod, 0, 0, 1)
+       ZEND_ARG_INFO(0, zip_entry)
+ZEND_END_ARG_INFO()
+/* }}} */
+
 /* {{{ zend_function_entry */
 static zend_function_entry zip_functions[] = {
-       ZEND_RAW_FENTRY("zip_open", zif_zip_open, NULL, 0)
-       ZEND_RAW_FENTRY("zip_close", zif_zip_close, NULL, 0)
-       ZEND_RAW_FENTRY("zip_read", zif_zip_read, NULL, 0)
-       PHP_FE(zip_entry_open,          NULL)
-       PHP_FE(zip_entry_close,         NULL)
-       PHP_FE(zip_entry_read,          NULL)
-       PHP_FE(zip_entry_filesize,      NULL)
-       PHP_FE(zip_entry_name,          NULL)
-       PHP_FE(zip_entry_compressedsize,                NULL)
-       PHP_FE(zip_entry_compressionmethod,             NULL)
+       ZEND_RAW_FENTRY("zip_open", zif_zip_open, arginfo_zip_open, 0)
+       ZEND_RAW_FENTRY("zip_close", zif_zip_close, arginfo_zip_close, 0)
+       ZEND_RAW_FENTRY("zip_read", zif_zip_read, arginfo_zip_read, 0)
+       PHP_FE(zip_entry_open,          arginfo_zip_entry_open)
+       PHP_FE(zip_entry_close,         arginfo_zip_entry_close)
+       PHP_FE(zip_entry_read,          arginfo_zip_entry_read)
+       PHP_FE(zip_entry_filesize,      arginfo_zip_entry_filesize)
+       PHP_FE(zip_entry_name,          arginfo_zip_entry_name)
+       PHP_FE(zip_entry_compressedsize,                arginfo_zip_entry_compressedsize)
+       PHP_FE(zip_entry_compressionmethod,             arginfo_zip_entry_compressionmethod)
 
        {NULL, NULL, NULL}
 };
index a66438600ae55dcc7a9817c051bf26dbac86f114..68d7db80b326a892a33358c049bf31216620a703 100644 (file)
@@ -101,10 +101,72 @@ static PHP_FUNCTION(gzencode);
 static PHP_FUNCTION(ob_gzhandler);
 static PHP_FUNCTION(zlib_get_coding_type);
 
+/* {{{ arginfo */
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_gzfile, 0, 0, 1)
+       ZEND_ARG_INFO(0, filename)
+       ZEND_ARG_INFO(0, use_include_path)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_gzopen, 0, 0, 2)
+       ZEND_ARG_INFO(0, filename)
+       ZEND_ARG_INFO(0, mode)
+       ZEND_ARG_INFO(0, use_include_path)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_readgzfile, 0, 0, 1)
+       ZEND_ARG_INFO(0, filename)
+       ZEND_ARG_INFO(0, use_include_path)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_gzcompress, 0, 0, 1)
+       ZEND_ARG_INFO(0, data)
+       ZEND_ARG_INFO(0, level)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_gzuncompress, 0, 0, 1)
+       ZEND_ARG_INFO(0, data)
+       ZEND_ARG_INFO(0, length)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_gzdeflate, 0, 0, 1)
+       ZEND_ARG_INFO(0, data)
+       ZEND_ARG_INFO(0, level)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_gzinflate, 0, 0, 1)
+       ZEND_ARG_INFO(0, data)
+       ZEND_ARG_INFO(0, length)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_zlib_get_coding_type, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_gzencode, 0, 0, 1)
+       ZEND_ARG_INFO(0, data)
+       ZEND_ARG_INFO(0, level)
+       ZEND_ARG_INFO(0, encoding_mode)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_ob_gzhandler, 0, 0, 2)
+       ZEND_ARG_INFO(0, str)
+       ZEND_ARG_INFO(0, mode)
+ZEND_END_ARG_INFO()
+/* }}} */
+
 /* {{{ php_zlib_functions[]
  */
 static const zend_function_entry php_zlib_functions[] = {
-       PHP_FE(readgzfile,                                              NULL)
+       PHP_FE(readgzfile,                                              arginfo_readgzfile)
        PHP_FALIAS(gzrewind,    rewind,                 NULL)
        PHP_FALIAS(gzclose,             fclose,                 NULL)
        PHP_FALIAS(gzeof,               feof,                   NULL)
@@ -112,20 +174,20 @@ static const zend_function_entry php_zlib_functions[] = {
        PHP_FALIAS(gzgets,              fgets,                  NULL)
        PHP_FALIAS(gzgetss,             fgetss,                 NULL)
        PHP_FALIAS(gzread,              fread,                  NULL)
-       PHP_FE(gzopen,                                                  NULL)
+       PHP_FE(gzopen,                                                  arginfo_gzopen)
        PHP_FALIAS(gzpassthru,  fpassthru,              NULL)
        PHP_FALIAS(gzseek,              fseek,                  NULL)
        PHP_FALIAS(gztell,              ftell,                  NULL)
        PHP_FALIAS(gzwrite,             fwrite,                 NULL)
        PHP_FALIAS(gzputs,              fwrite,                 NULL)
-       PHP_FE(gzfile,                                                  NULL)
-       PHP_FE(gzcompress,                              NULL)
-       PHP_FE(gzuncompress,                            NULL)
-       PHP_FE(gzdeflate,                               NULL)
-       PHP_FE(gzinflate,                               NULL)
-       PHP_FE(gzencode,                                                NULL)
-       PHP_FE(ob_gzhandler,                                    NULL)
-       PHP_FE(zlib_get_coding_type,                    NULL)
+       PHP_FE(gzfile,                                                  arginfo_gzfile)
+       PHP_FE(gzcompress,                              arginfo_gzcompress)
+       PHP_FE(gzuncompress,                            arginfo_gzuncompress)
+       PHP_FE(gzdeflate,                               arginfo_gzdeflate)
+       PHP_FE(gzinflate,                               arginfo_gzinflate)
+       PHP_FE(gzencode,                                                arginfo_gzencode)
+       PHP_FE(ob_gzhandler,                                    arginfo_ob_gzhandler)
+       PHP_FE(zlib_get_coding_type,                    arginfo_zlib_get_coding_type)
        {NULL, NULL, NULL}
 };
 /* }}} */