Skip to content

Fix NUL byte in exception string terminating Exception::__toString() - #10873

Closed
iluuu1994 wants to merge 2 commits into
php:PHP-8.1from
iluuu1994:gh-10810
Closed

iluuu1994 wants to merge 2 commits into
php:PHP-8.1from
iluuu1994:gh-10810

Conversation

@iluuu1994

Copy link
Copy Markdown
Member

Fixes GH-10810

@Girgias Girgias left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread Zend/zend_exceptions.c Resolved
@iluuu1994

Copy link
Copy Markdown
Member Author

Hmm, given that zend_printf_to_smart_str may be customized, I'm not sure if introducing a new formatter is safe as the customized version doesn't handle it yet. It might be better to use %Z for now.

@iluuu1994 iluuu1994 closed this in b5726c2 Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants