Skip to content

ext/intl: intl_error_set_custom_msg() crash without an active call fr… - #23673

Open
devnexen wants to merge 1 commit into
php:PHP-8.5from
devnexen:intl_error_lifetime_fix
Open

ext/intl: intl_error_set_custom_msg() crash without an active call fr…#23673
devnexen wants to merge 1 commit into
php:PHP-8.5from
devnexen:intl_error_lifetime_fix

Conversation

@devnexen

Copy link
Copy Markdown
Member

…ame.

Since 6600d0e the message was unconditionally prefixed with get_active_function_or_method_name(), which asserts zend_is_executing() and dereferences a null EG(current_execute_data) in a release build. A UConverter subclass destroyed at request shutdown reached it through ucnv_close(). Fall back to the unprefixed message when there is no frame.

…ame.

Since 6600d0e the message was unconditionally prefixed with
get_active_function_or_method_name(), which asserts zend_is_executing() and
dereferences a null EG(current_execute_data) in a release build. A UConverter
subclass destroyed at request shutdown reached it through ucnv_close(). Fall
back to the unprefixed message when there is no frame.
@devnexen
devnexen marked this pull request as ready for review September 12, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant