diff options
author | Reeze Xia <reeze@php.net> | 2015-03-03 19:13:51 +0800 |
---|---|---|
committer | Reeze Xia <reeze@php.net> | 2015-03-03 19:13:51 +0800 |
commit | 916709cf8514e34a39426c6f127bb34096515324 (patch) | |
tree | f4b363e4f8bc0fd7b665820f451a38ef24fde176 /ext/standard/basic_functions.c | |
parent | c6cebca1e3d12a9857004cfd2997520929912716 (diff) | |
download | php-git-916709cf8514e34a39426c6f127bb34096515324.tar.gz |
Return void like other functions
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r-- | ext/standard/basic_functions.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 87c3425152..2ea1384500 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -4704,8 +4704,8 @@ PHP_FUNCTION(error_get_last) } /* }}} */ -/* {{{ proto bool error_clear_last() - Clear the last occurred error. Returns false if there hasn't been an error yet. */ +/* {{{ proto void error_clear_last(void) + Clear the last occurred error. */ PHP_FUNCTION(error_clear_last) { if (zend_parse_parameters_none() == FAILURE) { @@ -4723,11 +4723,7 @@ PHP_FUNCTION(error_clear_last) free(PG(last_error_file)); PG(last_error_file) = NULL; } - - RETURN_TRUE; } - - RETURN_FALSE; } /* }}} */ |