Skip to content

Conversation

nielsdos
Copy link
Member

To do this, we move the macro check and therefore we also have to move some variable declarations to avoid compiler warnings.

To do this, we move the macro check and therefore we also have to move
some variable declarations to avoid compiler warnings.
@nielsdos nielsdos force-pushed the xml-reader-stub-arginfo-zpp branch from 1a2ba7a to 8d70430 Compare October 11, 2025 09:54
Comment on lines 924 to -929
PHP_METHOD(XMLReader, setSchema)
{
#ifdef LIBXML_SCHEMAS_ENABLED
Copy link
Member

Choose a reason for hiding this comment

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

That the method need to exist? As normally we only expose functions/methods for functionality that is available. Obviously this is not a fix that is possible for 8.3.

Copy link
Member Author

Choose a reason for hiding this comment

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

Normally we should make the method conditionally available indeed. As atm it is hard to polyfill this.
There are more of these kind of cases unfortunately. We should try to make an effort to find them on master and do the right thing there. That's not very high priority though.

@nielsdos nielsdos closed this in 40f4091 Oct 11, 2025
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