Skip to content

Remove php_error_docref_unchecked - #23042

Merged
NattyNarwhal merged 2 commits into
php:masterfrom
NattyNarwhal:remove-docref-unchecked
Aug 4, 2026
Merged

Remove php_error_docref_unchecked#23042
NattyNarwhal merged 2 commits into
php:masterfrom
NattyNarwhal:remove-docref-unchecked

Conversation

@NattyNarwhal

Copy link
Copy Markdown
Member

Following up GH-22930, this is some low hanging fruit (there's a lot more zend_error_unchecked and php_printf_unchecked).

@arnaud-lb arnaud-lb 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.

Looks good to me!

Comment thread UPGRADING.INTERNALS Outdated
@NattyNarwhal
NattyNarwhal force-pushed the remove-docref-unchecked branch from ba4358c to c866d1c Compare August 4, 2026 16:50
@LamentXU123

Copy link
Copy Markdown
Member

The CI failure is fixed. You can rebase this to master to pass CI

After phpGH-22390 was merged, we can now use a %pS format specifier for
zend_string without having to use the unchecked variant (so that gcc et
al doesn't complain that %S should be for wchar_t*).
There are no external users AFAIK, and now no internal users.
@NattyNarwhal
NattyNarwhal force-pushed the remove-docref-unchecked branch from c866d1c to 6147e7e Compare August 4, 2026 19:15
@NattyNarwhal
NattyNarwhal merged commit 02334db into php:master Aug 4, 2026
18 checks passed
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.

4 participants