summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReeze Xia <reeze@php.net>2015-03-03 18:49:49 +0800
committerReeze Xia <reeze@php.net>2015-03-03 18:49:49 +0800
commitc6cebca1e3d12a9857004cfd2997520929912716 (patch)
treec9915d1faee156a85d9592bb5f28c47cb80e50b5
parent908542c34e436ee06c49d55b93320da28adf1ac0 (diff)
downloadphp-git-c6cebca1e3d12a9857004cfd2997520929912716.tar.gz
Use zend_parse_parameters_none()
-rw-r--r--ext/standard/basic_functions.c4
1 files changed, 2 insertions, 2 deletions
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;
}