Skip to content

Commit b8278fd

Browse files
committed
ext/intl: Fix Spoofchecker build after double construction change (php#22386)
PHP-8.5 no longer declares a zend_error_handling variable in Spoofchecker::__construct(). The previous merge from PHP-8.4 carried forward a zend_replace_error_handling() call that references the removed local variable. Remove the stale call so PHP-8.5 and branches merged from it build again.
1 parent acbe0d2 commit b8278fd

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

ext/intl/spoofchecker/spoofchecker_create.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ PHP_METHOD(Spoofchecker, __construct)
3636
RETURN_THROWS();
3737
}
3838

39-
zend_replace_error_handling(EH_THROW, IntlException_ce_ptr, &error_handling);
40-
4139
co->uspoof = uspoof_open(SPOOFCHECKER_ERROR_CODE_P(co));
4240
if (U_FAILURE(INTL_DATA_ERROR_CODE(co))) {
4341
zend_throw_exception(IntlException_ce_ptr,

0 commit comments

Comments
 (0)