Re: [RFC] [Discussion] Add openStream() to XML{Reader,Writer}
| From: | Niels Dossche | Date: | Mon, 27 May 2024 19:43:16 +0000 |
| Subject: | Re: [RFC] [Discussion] Add openStream() to XML{Reader,Writer} | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-123439@lists.php.net to get a copy of this message | ||
On 22/05/2024 19:47, Niels Dossche wrote:
> Okay, that seems reasonable to me and I can do that.
> I'll make them return static and do "new static()" like I proposed with the new
> static method.
>
> For XMLWriter, I suppose we also want the static counterparts:
> *
XMLWriter::toMemory() for (new
> XMLWriter)->openMemory()
> * XMLWriter::toUri() for (new
> XMLWriter)->openUri()
>
> If that sounds good I'll update the RFC.
>
> Niels
I've now updated the RFC to include this kind of change; except I used the term Url instead of
Uri.
See the new subsection "Consistency" for what I propose.
Niels