mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Backport fix from PHP 8.3: The exception handler already takes care of destroying the return value
This commit is contained in:
@@ -3822,7 +3822,6 @@ PHP_METHOD(DateTimeZone, __set_state)
|
||||
tzobj = Z_PHPTIMEZONE_P(return_value);
|
||||
if (!php_date_timezone_initialize_from_hash(&return_value, &tzobj, myht)) {
|
||||
zend_throw_error(NULL, "Timezone initialization failed");
|
||||
zval_ptr_dtor(return_value);
|
||||
RETURN_THROWS();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user