Skip to content

Commit fecad54

Browse files
committed
Backport fix from PHP 8.3: The exception handler already takes care of destroying the return value
1 parent 3354cc6 commit fecad54

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/date/php_date.c

-1
Original file line numberDiff line numberDiff line change
@@ -3822,7 +3822,6 @@ PHP_METHOD(DateTimeZone, __set_state)
38223822
tzobj = Z_PHPTIMEZONE_P(return_value);
38233823
if (!php_date_timezone_initialize_from_hash(&return_value, &tzobj, myht)) {
38243824
zend_throw_error(NULL, "Timezone initialization failed");
3825-
zval_ptr_dtor(return_value);
38263825
RETURN_THROWS();
38273826
}
38283827
}

0 commit comments

Comments
 (0)