Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local)

2024-08-22 Thread Nick Lockheart
> > BUT, if people already complain about "\" being ugly, having to write > "namespace\" is going to make them REALLY grumpy... > So maybe at the same time (or, probably, in advance) we need to come > up with a nicer syntax for explicitly referencing the current > namespace. > Unfortunately, fin

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

2024-08-22 Thread Bruce Weirdan
On Fri, Aug 23, 2024 at 1:03 AM Dennis Snell wrote: > Just for reference, since I’ve looked before and not found it. Can > someone indicate where to find the PHP function documentation? There are a > number of updates I would love to propose but I don’t know where to find > the content that appe

Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local)

2024-08-22 Thread Mike Schinkel
> On Aug 22, 2024, at 5:32 PM, Rowan Tommins [IMSoP] > wrote: > I was thinking about this earlier, and how the migration is pretty much the > same (and equally automatable) in either direction: > > * If unqualified calls become always local, then every global function call > needs a use statem

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

2024-08-22 Thread Dennis Snell
> On Aug 22, 2024, at 5:01 PM, Niels Dossche wrote: > > On 20/08/2024 00:45, Dennis Snell wrote: >> >>> 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. >>>

[PHP-DEV] PHP 8.3.11RC2 Ready for testing

2024-08-22 Thread Jakub Zelenka
PHP 8.3.11RC2 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.11RC2 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] Re: [RFC] Decoding HTML and the Ambiguous Ampersand

2024-08-22 Thread Niels Dossche
On 20/08/2024 00:45, Dennis Snell wrote: > >> 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 reference

Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local)

2024-08-22 Thread Rowan Tommins [IMSoP]
On 02/08/2024 23:00, Nick Lockheart wrote: If class A relies on class B, but you want to swap out class B with a stub to test class A in isolation, is there a way to make every call to class B, from class A, actually call a different class during the test, without modifying class A's code? The

Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local)

2024-08-22 Thread Rowan Tommins [IMSoP]
On 04/08/2024 18:41, Ilija Tovilo wrote: * Prefix your calls with namespace\. That's quite ugly, but is the syntax we currently offer. I was thinking about this earlier, and how the migration is pretty much the same (and equally automatable) in either direction: * If unqualified calls becom

Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local)

2024-08-22 Thread John Coggeshall
On Aug 22 2024, at 4:09 am, Rob Landers wrote: > > If you have the ability to inject arbitrary code, you've already lost. It > doesn't matter whether they use this feature, or just register a shutdown > function, autoloader, replace classes/functions/methods entirely, or > whatever. Should we

Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local)

2024-08-22 Thread Rob Landers
On Wed, Aug 21, 2024, at 20:32, John Coggeshall wrote: > > > On Aug 21 2024, at 2:10 pm, Ilija Tovilo wrote: >> >> Including a malicious composer package already allows for arbitrary >> code execution, do you really need more than that? > > Of course. We've seen many examples in the wild of 3r