]> granicus.if.org Git - php/commitdiff
Fix arginfo and proto
authorHannes Magnusson <bjori@php.net>
Tue, 30 Dec 2008 18:55:16 +0000 (18:55 +0000)
committerHannes Magnusson <bjori@php.net>
Tue, 30 Dec 2008 18:55:16 +0000 (18:55 +0000)
Zend/zend_builtin_functions.c

index 2180f582a56b7e9d14cfc541acffc6d54d2250d0..1d656377452bd3cbd59c73994e4480cce0c80df1 100644 (file)
@@ -118,7 +118,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_each, 0, 0, 1)
        ZEND_ARG_INFO(1, arr)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_INFO_EX(arginfo_error_reporting, 0, 0, 1)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_error_reporting, 0, 0, 0)
        ZEND_ARG_INFO(0, new_error_level)
 ZEND_END_ARG_INFO()
 
@@ -582,7 +582,7 @@ ZEND_FUNCTION(each)
 /* }}} */
 
 
-/* {{{ proto int error_reporting(int new_error_level=null)
+/* {{{ proto int error_reporting([int new_error_level])
    Return the current error_reporting level, and if an argument was passed - change to the new level */
 ZEND_FUNCTION(error_reporting)
 {