[PHP-DEV] Proposal: $options argument for SimpleXMLElement::asXML

2023-09-09 Thread Niels Dossche
Hi internals I came across https://bugs.php.net/bug.php?id=67387. Passing the option in via the constructor doesn't work because the constructor only allows parser options. We can implement support for options (such as LIBXML_NOXMLDECL, LIBXML_SAVE_NOEMPTYTAG) by adding an (optional) argument to

Re: [PHP-DEV] RFC Proposal: Readonly Structs in PHP

2023-09-09 Thread Robert Landers
On Sat, Sep 9, 2023 at 1:09 AM David Gebler wrote: > > On Fri, Sep 8, 2023 at 2:12 PM Lanre Waju wrote: > > > Dear PHP Internals, > > > > I am writing to propose a new feature for PHP that introduces the > > concept of structs. This feature aims to provide a more concise and > > expressive way to