[PHP-DEV] Add $outerHTML property to DOM

2024-09-28 Thread Niels Dossche
Hi internals I opened a PR for PHP 8.5 to add $outerHTML to the DOM extension. PR link: https://github.com/php/php-src/pull/15887 This is in line with adding more functionality from the DOM spec into PHP. Just checking here if anyone objects to this or thinks this needs an RFC. Kind regards Niels

Re: [PHP-DEV] Protected destructors

2024-09-28 Thread John Bafford
On Sep 28, 2024, at 13:23, Jonathan Vollebregt wrote: > >> Okay. My point is that you cannot know (unless there are no circular >> dependencies) *when* a destructor is called by the engine; > > The benefit of non-public visibility isn't when it's called, but how many > times it's called. If yo

Re: [PHP-DEV] No more RFC implementations during beta phase

2024-09-28 Thread Arvids Godjuks
On Sat, 28 Sept 2024 at 13:03, Christoph M. Becker wrote: > On 27.09.2024 at 18:22, Arvids Godjuks wrote: > > > I agree with the general sentiment that alpha/beta/rc should be followed > in > > their canonical form: > > - Alpha - API/ABI gets broken, new stuff gets introduced, big > > implementat

Re: [PHP-DEV] Protected destructors

2024-09-28 Thread Jonathan Vollebregt
Okay. My point is that you cannot know (unless there are no circular dependencies) *when* a destructor is called by the engine; The benefit of non-public visibility isn't when it's called, but how many times it's called. If you can declare your destructor non-public you can be confident it'll

Re: [PHP-DEV] Protected destructors

2024-09-28 Thread Rob Landers
On Sat, Sep 28, 2024, at 16:46, Christoph M. Becker wrote: > On 28.09.2024 at 16:21, Jonathan Vollebregt wrote: > > >> Hmm, I wonder about the use-cases of userland destructors. It seems to > >> me they are mostly useful for sanity checks, and maybe to close > >> resources. Are there others? > >

Re: [PHP-DEV] Protected destructors

2024-09-28 Thread Christoph M. Becker
On 28.09.2024 at 16:21, Jonathan Vollebregt wrote: >> Hmm, I wonder about the use-cases of userland destructors.  It seems to >> me they are mostly useful for sanity checks, and maybe to close >> resources.  Are there others? >> >> If not, I wouldn't worry much about the visibility of destructors,

Re: [PHP-DEV] Protected destructors

2024-09-28 Thread Jonathan Vollebregt
Hmm, I wonder about the use-cases of userland destructors. It seems to me they are mostly useful for sanity checks, and maybe to close resources. Are there others? If not, I wouldn't worry much about the visibility of destructors, because resources are scheduled for replacement anyway. Beside

Re: [PHP-DEV] No more RFC implementations during beta phase

2024-09-28 Thread Christoph M. Becker
On 27.09.2024 at 18:22, Arvids Godjuks wrote: > I agree with the general sentiment that alpha/beta/rc should be followed in > their canonical form: > - Alpha - API/ABI gets broken, new stuff gets introduced, big > implementations happen > - Beta - new big additions are not allowed any more and int

Re: [PHP-DEV] Protected destructors

2024-09-28 Thread Christoph M. Becker
On 27.09.2024 at 14:32, Jonathan Vollebregt wrote: > Long story short I'd like to suggest: > > 1. Allow the engine to call protected destructors (again) > 2. Warning when declaring a private destructor as with other magic methods > 3. Documentation update to confirm private destructors aren't allo