Re: [PHP-DEV] Re: [RFC] [Discussion] Add openStream() to XML{Reader,Writer}

2024-05-10 Thread Marc B.
Hi Niels,Am 10.05.2024 19:38 schrieb Niels Dossche :On 10/05/2024 16:31, Larry Garfield wrote: > On Fri, May 10, 2024, at 2:03 PM, Niels Dossche wrote: >> On 22/04/2024 20:41, Niels Dossche wrote: >>> Hi internals >>> >>> I'm opening the discussion for my RFC "Add openStream() to XML{Reader,Wr

Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function

2024-05-10 Thread Saki Takamachi
Hi Tim, > This is already the case. `exit` throws an internal uncatchable Exception. > Quoting from the RFC: Thanks, I had overlooked that. I have no other concerns. Regards, Saki

Re: [PHP-DEV] Re: [RFC] [Discussion] Add openStream() to XML{Reader,Writer}

2024-05-10 Thread Niels Dossche
On 10/05/2024 16:31, Larry Garfield wrote: > On Fri, May 10, 2024, at 2:03 PM, Niels Dossche wrote: >> On 22/04/2024 20:41, Niels Dossche wrote: >>> Hi internals >>> >>> I'm opening the discussion for my RFC "Add openStream() to >>> XML{Reader,Writer}". >>> RFC link: https://wiki.php.net/rfc/xmlre

Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function

2024-05-10 Thread Tim Düsterhus
Hi On 5/9/24 17:18, Saki Takamachi wrote: Is it nonsense to always stop processing even if an error occurs? Or, how about creating an uncatchable exception class specifically for exits? Or is this level of risk negligible? This is already the case. `exit` throws an internal uncatchable Exc

Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function

2024-05-10 Thread Tim Düsterhus
Hi On 5/9/24 16:27, Larry Garfield wrote: I support this. My only question (which applies to current exit() as well), is what the exit code is when you pass a string as the parameter. That's not clear from the exit() docs currently, but the RFC made me wonder. (This may be just a doc fix a

Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function

2024-05-10 Thread Tim Düsterhus
Hi On 5/9/24 16:17, Jorg Sowa wrote: I don't think there are any other "functions" like this. What about list(), isset(), print(), echo(), require(), include(), unset(), empty()? We use them the same way as functions, but those are not real functions. All of them require to be followed by an

Re: [PHP-DEV] Stricter requirements for libxml

2024-05-10 Thread Sebastian Bergmann
Am 10.05.2024 um 17:51 schrieb Niels Dossche: Please let me know what you think. +1

[PHP-DEV] Stricter requirements for libxml

2024-05-10 Thread Niels Dossche
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

Re: [PHP-DEV] Re: [RFC] [Discussion] Add openStream() to XML{Reader,Writer}

2024-05-10 Thread Larry Garfield
On Fri, May 10, 2024, at 2:03 PM, Niels Dossche wrote: > On 22/04/2024 20:41, Niels Dossche wrote: >> Hi internals >> >> I'm opening the discussion for my RFC "Add openStream() to >> XML{Reader,Writer}". >> RFC link: https://wiki.php.net/rfc/xmlreader_writer_streams >> >> Kind regards >> Niels >

[PHP-DEV] Re: [RFC] [Discussion] Add openStream() to XML{Reader,Writer}

2024-05-10 Thread Niels Dossche
On 22/04/2024 20:41, Niels Dossche wrote: > Hi internals > > I'm opening the discussion for my RFC "Add openStream() to > XML{Reader,Writer}". > RFC link: https://wiki.php.net/rfc/xmlreader_writer_streams > > Kind regards > Niels Hi internals It's been over two weeks since I opened the discuss