com php-src: Added missing zend_parse_parameters_none( ) to restore_error_handler() and restore_ex ception_handler() (Ferenc): Zend/zend_builtin
_functions.c

From: Date: Mon, 30 Mar 2015 15:57:32 +0000
Subject: com php-src: Added missing zend_parse_parameters_none( ) to restore_error_handler() and restore_ex ception_handler() (Ferenc): Zend/zend_builtin
_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85949@lists.php.net to get a copy of this message
Commit: 607b7d662a854443713e8a9c651c888527718618 Author: Kalle Sommer Nielsen <kalle@php.net> Mon, 30 Mar 2015 17:57:32 +0200 Parents: 3ec9d9f3b674bd99bfb4655668a16b2476407a4d Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=607b7d662a854443713e8a9c651c888527718618 Log: Added missing zend_parse_parameters_none() to restore_error_handler() and restore_exception_handler() (Ferenc) Changed paths: M Zend/zend_builtin_functions.c Diff: diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index b123cda..e131e97 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -1698,6 +1698,10 @@ ZEND_FUNCTION(set_error_handler) Restores the previously defined error handler function */ ZEND_FUNCTION(restore_error_handler) { + if (zend_parse_parameters_none() == FAILURE) { + return; + } + if (Z_TYPE(EG(user_error_handler)) != IS_UNDEF) { zval zeh; @@ -1760,6 +1764,10 @@ ZEND_FUNCTION(set_exception_handler) Restores the previously defined exception handler function */ ZEND_FUNCTION(restore_exception_handler) { + if (zend_parse_parameters_none() == FAILURE) { + return; + } + if (Z_TYPE(EG(user_exception_handler)) != IS_UNDEF) { zval_ptr_dtor(&EG(user_exception_handler)); }

« previous php.cvs (#85949) next »