[php-src] master: Remove some unnecessary exception type checks

From: Date: Thu, 29 Apr 2021 19:24:39 +0000
Subject: [php-src] master: Remove some unnecessary exception type checks
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115969@lists.php.net to get a copy of this message
Author: Nikita Popov (nikic) Date: 2021-04-29T21:23:58+02:00 Commit: https://github.com/php/php-src/commit/79d237c8b61014c7ef171883e116e5bd28eab2ff Raw diff: https://github.com/php/php-src/commit/79d237c8b61014c7ef171883e116e5bd28eab2ff.diff Remove some unnecessary exception type checks These types are enforced by typed properties now. Changed paths: M Zend/zend_exceptions.c Diff: diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 1c813866aa81..4cf49320a732 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -335,12 +335,9 @@ ZEND_METHOD(Exception, __wakeup) zval value, *pvalue; zval *object = ZEND_THIS; - CHECK_EXC_TYPE(ZEND_STR_MESSAGE, IS_STRING); - CHECK_EXC_TYPE(ZEND_STR_STRING, IS_STRING); - CHECK_EXC_TYPE(ZEND_STR_CODE, IS_LONG); - CHECK_EXC_TYPE(ZEND_STR_FILE, IS_STRING); - CHECK_EXC_TYPE(ZEND_STR_LINE, IS_LONG); - /* The type of $trace and $previous is enforced through typed properties. */ + CHECK_EXC_TYPE(ZEND_STR_MESSAGE, IS_STRING); + CHECK_EXC_TYPE(ZEND_STR_CODE, IS_LONG); + /* The type of all other properties is enforced through typed properties. */ } /* }}} */

« previous php.cvs (#115969) next »