Skip to content

Remove param argument from php_verror#22865

Open
NattyNarwhal wants to merge 6 commits into
php:masterfrom
NattyNarwhal:remove-params-verror
Open

Remove param argument from php_verror#22865
NattyNarwhal wants to merge 6 commits into
php:masterfrom
NattyNarwhal:remove-params-verror

Conversation

@NattyNarwhal

@NattyNarwhal NattyNarwhal commented Jul 22, 2026

Copy link
Copy Markdown
Member

Update tests and UPGRADING.INTERNALS.

Note there is some impact to extensions if they call this; however, it's usually in a centralized wrapper function which is easy to update. In my quick skim of external extensions, apcu is the only maintained one that'll need an update.

Also note that php_verror is a bit weirdly named. It should probably be called something like php_docref_verror, since php_error_docref the vararg wrapper around it (now that 1/2 are gone); let me know if this is something worth pursuing. There is php_error, which is just an alias for zend_error, which doesn't take a docref, nor does it have the function and args prefix that php_verror has. It should be used for engine stuff, but I think there are a few places where it's called from places where php_error_docref should be used instead in extensions. I can take a look at that too.

Now that docref has been knocked out and error_include_args exists,
remove this argument. Callers will be updated accordingly.
@NattyNarwhal
NattyNarwhal force-pushed the remove-params-verror branch from 78933b4 to 759a1a4 Compare July 22, 2026 21:36
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