1
0
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:
Derick Rethans
2024-09-13 11:04:45 +01:00
parent 3354cc6e89
commit fecad54d74

View File

@@ -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();
}
}