Re: Stricter requirements for libxml
| From: | Derick Rethans | Date: | Tue, 14 May 2024 09:36:06 +0000 |
| Subject: | Re: Stricter requirements for libxml | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-123317@lists.php.net to get a copy of this message | ||
On Fri, 10 May 2024, Niels Dossche wrote:
> Hi internals
>
> Libxml is used as the underlying library for many PHP extensions.
> Interestingly, libxml can be built with supports for various features disabled.
> E.g. you can build libxml without XPath, Schemas, HTML, ... support.
> In that case, these features are unavailable in PHP. E.g. some classes may not be defined or
> functions may emit a warning instead of performing an action.
>
> I'm thinking of proposing an RFC that puts stricter requirements on libxml at build time.
> That would make such features a requirement during PHP's build process.
> This will simplify maintenance and will also make sure that users can rely on these
> functionalities to always be available.
>
> Please let me know what you think.
That seems sensible. Did you find any Linux distribution that actively
disables these features, or is this a "just in case" kind of change?
cheers,
Derick