Skip to content

[%pS migration] Use %pS in ext/libxml - #23157

Draft
DanielEScherzer wants to merge 1 commit into
php:masterfrom
DanielEScherzer:ps-migration-ext-libxml
Draft

[%pS migration] Use %pS in ext/libxml#23157
DanielEScherzer wants to merge 1 commit into
php:masterfrom
DanielEScherzer:ps-migration-ext-libxml

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Member

No description provided.

@DanielEScherzer
DanielEScherzer force-pushed the ps-migration-ext-libxml branch from ac2cfc1 to 6f4d3bd Compare August 9, 2026 01:36
Comment thread ext/libxml/libxml.c
break;
default:
php_error_docref(NULL, E_WARNING, "%s", ZSTR_VAL(LIBXML(error_buffer).s));
// Remove the extra NULL at the end - fine to manipulate the error buffer because it

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.

The old code was fine. I don't believe there can be embedded NUL bytes, so why complicate this?

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.

2 participants