From: Christoph M. Becker Date: Fri, 22 Jun 2018 13:45:31 +0000 (+0200) Subject: Fix arginfo wrt. optional/required parameters X-Git-Tag: php-7.2.8RC1~23^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b5597f7d8e31933dfb833dd443290adc02ca307;p=php Fix arginfo wrt. optional/required parameters All parameters of phpdbg_color(), phpdbg_exec() and phpdbg_prompt() are required. We mark them as such. --- diff --git a/NEWS b/NEWS index 1dab097ba9..79612ca2bd 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,9 @@ PHP NEWS . Fixed bug #73342 (Vulnerability in php-fpm by changing stdin to non-blocking). (Nikita) +- phpdbg: + . Fix arginfo wrt. optional/required parameters. (cmb) + - Standard: . Fixed bug #76505 (array_merge_recursive() is duplicating sub-array keys). (Laruence) diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 48784b28ad..70ced5793d 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -756,16 +756,16 @@ ZEND_BEGIN_ARG_INFO_EX(phpdbg_break_function_arginfo, 0, 0, 1) ZEND_ARG_INFO(0, function) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(phpdbg_color_arginfo, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(phpdbg_color_arginfo, 0, 0, 2) ZEND_ARG_INFO(0, element) ZEND_ARG_INFO(0, color) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(phpdbg_prompt_arginfo, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(phpdbg_prompt_arginfo, 0, 0, 1) ZEND_ARG_INFO(0, string) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(phpdbg_exec_arginfo, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(phpdbg_exec_arginfo, 0, 0, 1) ZEND_ARG_INFO(0, context) ZEND_END_ARG_INFO()