From: Reeze Xia Date: Tue, 3 Mar 2015 10:49:49 +0000 (+0800) Subject: Use zend_parse_parameters_none() X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~755^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6cebca1e3d12a9857004cfd2997520929912716;p=php Use zend_parse_parameters_none() --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index ec15a4db43..87c3425152 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -4690,7 +4690,7 @@ PHPAPI int _php_error_log_ex(int opt_err, char *message, size_t message_len, cha Get the last occurred error as associative array. Returns NULL if there hasn't been an error yet. */ PHP_FUNCTION(error_get_last) { - if (zend_parse_parameters(ZEND_NUM_ARGS(), "") == FAILURE) { + if (zend_parse_parameters_none() == FAILURE) { return; } @@ -4708,7 +4708,7 @@ PHP_FUNCTION(error_get_last) Clear the last occurred error. Returns false if there hasn't been an error yet. */ PHP_FUNCTION(error_clear_last) { - if (zend_parse_parameters(ZEND_NUM_ARGS(), "") == FAILURE) { + if (zend_parse_parameters_none() == FAILURE) { return; }