[PHP-DEV] Re: Archive php/pftt2?

2024-08-15 Thread Derick Rethans
On Tue, 6 Aug 2024, Christoph M. Becker wrote: > Hi all, > > this is about the PFTT2 repository[1]. This was used by the Windows QA > team long ago, and had a short-term revival about 2019, but was then > dropped in favor of using run-tests.php, while all the other features > (such as PHPUnit te

[PHP-DEV] Re: Archive php/pftt2?

2024-08-15 Thread Christoph M. Becker
On 15.08.2024 at 13:43, Derick Rethans wrote: > On Tue, 6 Aug 2024, Christoph M. Becker wrote: > >> this is about the PFTT2 repository[1]. This was used by the Windows QA >> team long ago, and had a short-term revival about 2019, but was then >> dropped in favor of using run-tests.php, while all

Re: [PHP-DEV] Should there be a `get_declared_enums()` function ?

2024-08-15 Thread Larry Garfield
On Wed, Aug 14, 2024, at 8:51 PM, Juliette Reinders Folmer wrote: > L.S., > > I just noticed the following, which struck me as weird/inconsistent: > > There are four different OO structures in PHP: > 1. Classes > 2. Interfaces > 3. Traits > 4. Enums > > For all four, an `*_exists()` function is ava

[PHP-DEV] PHP 8.4.0beta3 available for testing

2024-08-15 Thread Calvin Buckley
PHP 8.4.0beta3 has just been released and may be downloaded from https://downloads.php.net/~calvinb/ Or use the git tag: php-8.4.0beta3 Windows binaries are available at: https://windows.php.net/qa/ Please test it carefully, and report any bugs at https://github.com/php/php-src/issues The next

[PHP-DEV] PHP 8.2.23RC1 Ready for testing

2024-08-15 Thread Sergey Panteleev
PHP 8.2.23RC1 has just been released and can be downloaded from: https://downloads.php.net/~sergey/ or https://qa.php.net/ or use the git tag: php-8.2.23RC1 Windows binaries are available at: https://windows.php.net/qa/#php-8.2 Please test it carefully, and report any bugs to https://github.c

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-15 Thread John Coggeshall
On Aug 14 2024, at 5:27 pm, Lanre wrote: > > Can you point out where either of us suggested writing PHP in another > language? You might be mixing this up with the C11 thread, which has nothing > to do with this. All I'm proposing is improving the current C++ support in > the engine. > https

[PHP-DEV] [RFC] On the need of a `is_int_string` ?

2024-08-15 Thread Vincent Langlet
Hi, When string is used as an array key, it's sometimes casted to an int. As explained in https://www.php.net/manual/en/language.types.array.php: "Strings containing valid decimal ints, unless the number is preceded by a + sign, will be cast to the int type. E.g the key "8" will actually be stored

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-15 Thread Stephen Reay
> On 15 Aug 2024, at 22:22, Rob Landers wrote: > > Hello internals, > > I've decided to attempt an RFC for function autoloading. After reading > hundreds of ancient (and recent) emails relating to the topic along with > several abandoned RFCs from the past, and after much review, I've decide

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-15 Thread Lanre
On Thu, Aug 15, 2024 at 8:51 AM John Coggeshall wrote: > > > On Aug 14 2024, at 5:27 pm, Lanre wrote: > > > Can you point out where either of us suggested writing PHP in another > language? You might be mixing this up with the C11 thread, which has > nothing to do with this. All I'm proposing i

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-15 Thread Derick Rethans
On 15 August 2024 18:10:11 BST, Lanre wrote: >You're embarrassing yourself John, read my very first paragraph (you got >this). We have said this before, but you *really* need to stop using condescending language, and ad-hominems like this. cheers Derick

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-15 Thread Lanre
On Thu, Aug 15, 2024 at 11:33 AM Derick Rethans wrote: > On 15 August 2024 18:10:11 BST, Lanre wrote: > > >You're embarrassing yourself John, read my very first paragraph (you got > this). > > We have said this before, but you *really* need to stop using > condescending language, and ad-hominems

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-15 Thread Lanre
On Thu, Aug 15, 2024 at 11:42 AM Lanre wrote: > > > On Thu, Aug 15, 2024 at 11:33 AM Derick Rethans wrote: > >> On 15 August 2024 18:10:11 BST, Lanre wrote: >> >> >You're embarrassing yourself John, read my very first paragraph (you got >> this). >> >> We have said this before, but you *really*

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-15 Thread Bilge
On Thu, 15 Aug 2024, 18:50 Lanre, wrote: > > Why am I the only person being reminded of the rules? > Maybe because during the aggregate time you've spent slandering your fellow man, you could have written that RFC you claim to not have had the time to write.

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-15 Thread Lanre
On Thu, Aug 15, 2024 at 11:53 AM Bilge wrote: > > > On Thu, 15 Aug 2024, 18:50 Lanre, wrote: > >> >> Why am I the only person being reminded of the rules? >> > > Maybe because during the aggregate time you've spent slandering your > fellow man, you could have written that RFC you claim to not h

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-15 Thread Rowan Tommins [IMSoP]
On 15/08/2024 16:22, Rob Landers wrote: Hello internals, I've decided to attempt an RFC for function autoloading. After reading hundreds of ancient (and recent) emails relating to the topic along with several abandoned RFCs from the past, and after much review, I've decided to put forth a var

[PHP-DEV] Request for RFC karma

2024-08-15 Thread Dennis Snell
Greetings all, I would like to request RFC karma to propose a new mechanism for decoding HTML text, following the brief discussion earlier in  https://news-web.php.net/php.internals/124326. My wiki username is dmsnell Thank you! Dennis Snell P.S. After my subscription got messed up earlier

[PHP-DEV] PHP 8.3.11RC1 Ready for testing

2024-08-15 Thread Jakub Zelenka
PHP 8.3.11RC1 has just been released and can be downloaded from: https://downloads.php.net/~jakub/ or https://qa.php.net/ or use the git tag: php-8.3.11RC1 Windows binaries are available at: https://windows.php.net/qa/#php-8.3 Please test it carefully, and report any bugs to https://github.co

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-15 Thread Claude Pache
> Le 15 août 2024 à 17:27, Rob Landers a écrit : > >  > Hello internals, > > I've decided to attempt an RFC for function autoloading. After reading > hundreds of ancient (and recent) emails relating to the topic along with > several abandoned RFCs from the past, and after much review, I've

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-15 Thread Lanre
John reached out to me directly, but i think he raised some valid points that I should address here, so here it is: On Thu, Aug 15, 2024 at 1:56 PM John Coggeshall wrote: > Lanre, > > I think you're expectations are probably unrealistic if you expected to > drop a PR in a week to add C++ suppor

Re: [PHP-DEV] Request for RFC karma

2024-08-15 Thread Christoph M. Becker
On 15.08.2024 at 22:57, Dennis Snell wrote: > I would like to request RFC karma to propose a new mechanism for decoding > HTML text, following the brief discussion earlier in  > https://news-web.php.net/php.internals/124326. > > My wiki username is dmsnell RFC karma has been granted. Good luck

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-15 Thread Rob Landers
On Thu, Aug 15, 2024, at 18:18, Stephen Reay wrote: > > >> On 15 Aug 2024, at 22:22, Rob Landers wrote: >> >> Hello internals, >> >> I've decided to attempt an RFC for function autoloading. After reading >> hundreds of ancient (and recent) emails relating to the topic along with >> several a

Re: [PHP-DEV] Request for RFC karma

2024-08-15 Thread Derick Rethans
On 15 August 2024 21:57:07 BST, Dennis Snell wrote: > Is there a guide for how to use the mailing list (e.g. how to reply to > specific emails from a digest)? I’ve had an awful hard time finding > information online about this. It's possible, but only if you have a really good email client (t

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-15 Thread Derick Rethans
On 15 August 2024 18:42:58 BST, Lanre wrote: >On Thu, Aug 15, 2024 at 11:33 AM Derick Rethans wrote: > >> On 15 August 2024 18:10:11 BST, Lanre wrote: >> >> >You're embarrassing yourself John, read my very first paragraph (you got >> this). >> >> We have said this before, but you *really* need t

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-15 Thread Rob Landers
On Thu, Aug 15, 2024, at 20:40, Rowan Tommins [IMSoP] wrote: > On 15/08/2024 16:22, Rob Landers wrote: >> Hello internals, >> >> I've decided to attempt an RFC for function autoloading. After reading >> hundreds of ancient (and recent) emails relating to the topic along with >> several abandoned

Re: [PHP-DEV] [RFC] On the need of a `is_int_string` ?

2024-08-15 Thread Rob Landers
On Thu, Aug 15, 2024, at 17:42, Vincent Langlet wrote: > Hi, > > When string is used as an array key, it's sometimes casted to an int. > As explained in https://www.php.net/manual/en/language.types.array.php: > "Strings containing valid decimal ints, unless the number is preceded by a + > sign, w

Re: [PHP-DEV] function autoloading v4 RFC

2024-08-15 Thread Stephen Reay
Sent from my iPhone > On 16 Aug 2024, at 04:45, Rob Landers wrote: > > Userland functions don't throw that error, so it shouldn't be an issue. (You > can pass as many arguments as you want to a userland function, as long as > there are enough of them). Hi Rob, I didn't mean the actual inte

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-15 Thread Lanre
On Thu, Aug 15, 2024 at 4:39 PM Derick Rethans wrote: > On 15 August 2024 18:42:58 BST, Lanre wrote: > >On Thu, Aug 15, 2024 at 11:33 AM Derick Rethans wrote: > > > >> On 15 August 2024 18:10:11 BST, Lanre wrote: > >> > >> >You're embarrassing yourself John, read my very first paragraph (you >

[PHP-DEV] Re: Decoding HTML and the Ambiguous Ampersand

2024-08-15 Thread Dennis Snell
> On Jul 9, 2024, at 4:55 PM, Dennis Snell wrote: > > > Greetings all, > > > The `html_entity_decode( … ENT_HTML5 … )` function has a number of issues > that I’d like to correct. > > >  - It’s missing 720 of HTML5’s specified named character references. >  - 106 of these are named charact

[PHP-DEV] [DISCUSSION] Class Constant Enums?

2024-08-15 Thread Nick Lockheart
Hi, Is there any interest in having enums as class constants? I'm often finding cases where I would like to have an enum inside of a class, but don't want a free-floating enum that's basically like another class. When dealing with state, it's nice to have a human readable const to represent that

Re: [PHP-DEV] Should there be a `get_declared_enums()` function ?

2024-08-15 Thread Juliette Reinders Folmer
On 15-8-2024 15:09, Larry Garfield wrote: On Wed, Aug 14, 2024, at 8:51 PM, Juliette Reinders Folmer wrote: L.S., I just noticed the following, which struck me as weird/inconsistent: There are four different OO structures in PHP: 1. Classes 2. Interfaces 3. Traits 4. Enums For all four, an `*

Re: [PHP-DEV] Should there be a `get_declared_enums()` function ?

2024-08-15 Thread Mike Schinkel
> On Wed, Aug 14, 2024, at 8:51 PM, Juliette Reinders Folmer wrote: > Should a `get_declared_enums()` function be added ? My answer is "very much, yes." > On Aug 15, 2024, at 9:09 AM, Larry Garfield wrote: > Context: I can't remember the last time I used get_declared_classes() > (...it's a ki

Re: [PHP-DEV] [DISCUSSION] Class Constant Enums?

2024-08-15 Thread Mike Schinkel
> On Aug 15, 2024, at 9:37 PM, Nick Lockheart wrote: > > Hi, > > Is there any interest in having enums as class constants? > I'm often finding cases where I would like to have an enum inside of a > class, but don't want a free-floating enum that's basically like > another class. > > When dealin