com php-src: Use zend_parse_parameters_none(): ex t/standard/basic_functions.c

From: Date: Tue, 03 Mar 2015 10:49:49 +0000
Subject: com php-src: Use zend_parse_parameters_none(): ex t/standard/basic_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85367@lists.php.net to get a copy of this message
Commit: c6cebca1e3d12a9857004cfd2997520929912716 Author: Reeze Xia <reeze@php.net> Tue, 3 Mar 2015 18:49:49 +0800 Parents: 908542c34e436ee06c49d55b93320da28adf1ac0 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c6cebca1e3d12a9857004cfd2997520929912716 Log: Use zend_parse_parameters_none() Changed paths: M ext/standard/basic_functions.c Diff: diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index ec15a4d..87c3425 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; }

« previous php.cvs (#85367) next »