]> granicus.if.org Git - php/commitdiff
Use zend_parse_parameters_none()
authorReeze Xia <reeze@php.net>
Tue, 3 Mar 2015 10:49:49 +0000 (18:49 +0800)
committerReeze Xia <reeze@php.net>
Tue, 3 Mar 2015 10:49:49 +0000 (18:49 +0800)
ext/standard/basic_functions.c

index ec15a4db43b576350b447463fa65570cde1f0efa..87c34251529186f6dc3878a2615f3dcdc8748bef 100644 (file)
@@ -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;
        }