From: Hannes Magnusson Date: Tue, 30 Dec 2008 19:00:37 +0000 (+0000) Subject: MFB5.3: Fix error_reporting arginfo and proto X-Git-Tag: php-5.4.0alpha1~191^2~4716 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d0ac70f18faa61039b3f2f51aa5096c18bca7f0;p=php MFB5.3: Fix error_reporting arginfo and proto --- diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 52f0fb7f4e..4ceccee11e 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -119,7 +119,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() @@ -575,7 +575,7 @@ ZEND_FUNCTION(each) } /* }}} */ -/* {{{ proto int error_reporting(int new_error_level=null) U +/* {{{ proto int error_reporting([int new_error_level]) U Return the current error_reporting level, and if an argument was passed - change to the new level */ ZEND_FUNCTION(error_reporting) {