[PHP-DEV] Deprecated partially supported callables: should is_callable() throw a deprecation notice ?

2022-03-15 Thread Juliette Reinders Folmer
L.s., I've just been looking in detail at the Partially Supported Callables deprecation RFC: https://wiki.php.net/rfc/deprecate_partially_supported_callables The RFC explicitly excludes the `is_callable()` function and the `callable` type from throwing deprecation notices. The

[PHP-DEV] Re: ***SPAM*** [PHP-DEV] Re: [RFC] Deprecate and Remove utf8_encode and utf8_decode

2022-03-23 Thread Juliette Reinders Folmer
On 23-3-2022 14:46, Rowan Tommins wrote: On 20/02/2022 18:55, Rowan Tommins wrote: I would like to open discussion on an RFC to deprecate and later remove the functions utf8_encode() and utf8_decode() https://wiki.php.net/rfc/remove_utf8_decode_and_utf8_encode Final chance for feedback

Re: [PHP-DEV] Casing of acronyms in class and method names

2023-09-10 Thread Juliette Reinders Folmer
On 11-9-2023 1:57, Ben Ramsey wrote: I agree. Using uppercase for the first letter in an acronym and lowercase for subsequent letters appears to be prevalent in many userland libraries, so it seems to be what users expect. Since class names in PHP aren't case-sensitive, there should be no BC

Re: [PHP-DEV] A new JIT engine for PHP-8.4/9

2023-09-15 Thread Juliette Reinders Folmer
On 15-9-2023 12:15, Dmitry Stogov wrote: Hi, After the code-review feedback, one of the most questionable decisions was changed. Instead of including IR Framework as a git submodule, now its part is embedded into php-src. This will complicate the IR/JIT development a bit, but will simplify

Re: [PHP-DEV] Casing of acronyms in class and method names

2023-09-13 Thread Juliette Reinders Folmer
On 13-9-2023 17:48, Ben Ramsey wrote: On 9/10/23 20:59, Juliette Reinders Folmer wrote: With the above in mind, I wonder how much confusion/code churn renaming existing classes will cause and if that's worth it, especially as the suggested case for the PHP native class will likely

Re: [PHP-DEV] Access property of object stored in a constant

2023-08-18 Thread Juliette Reinders Folmer
On 18-8-2023 17:27, Ilija Tovilo wrote: Hi everyone Since https://wiki.php.net/rfc/new_in_initializers we can store objects in global constants. However, we may not actually read or write to the properties of those objects without first fetching the constant into a local variable. const a =

Re: [PHP-DEV] Deprecated partially supported callables: should is_callable() throw a deprecation notice ?

2022-04-21 Thread Juliette Reinders Folmer
On 22-4-2022 3:02, php-internals_nos...@adviesenzo.nl wrote: On 21-4-2022 21:56, Andreas Hennings wrote: On Thu, 21 Apr 2022 at 11:18, Rowan Tommins wrote: On Wed, 20 Apr 2022 at 19:16, Claude Pache wrote: You make a very important claim in your bug report: However, in real world,

[PHP-DEV] Re: Deprecated partially supported callables: should is_callable() throwa deprecation notice ?

2022-03-18 Thread Juliette Reinders Folmer
On 18-3-2022 14:37, Christoph M. Becker wrote: On 16.03.2022 at 06:52, Juliette Reinders Folmer wrote: I've just been looking in detail at the Partially Supported Callables deprecation RFC: https://wiki.php.net/rfc/deprecate_partially_supported_callables The RFC explicitly excludes

Re: [PHP-DEV] [Discussion] Expand deprecation notice scope for partially supported callables

2022-05-29 Thread Juliette Reinders Folmer
Hi Dan, On 29-5-2022 17:34, Dan Ackroyd wrote: Actually, I've just realised there is an error in the code in the RFC, which might be based on a misconception caused by how terrible callables are. In the code: if (is_callable('static::methodName')) { // For valid callbacks, this call will

[PHP-DEV] [VOTE] [RFC] Expand deprecation notice scope for partially supported callables

2022-05-31 Thread Juliette Reinders Folmer
L.S., I have opened the vote on the "Expand deprecation notice scope for partially supported callables" RFC: https://wiki.php.net/rfc/partially-supported-callables-expand-deprecation-notices The vote will run for two weeks and will close on June 14, 10:30 UTC. The discussion threads about

[PHP-DEV] Re: ***SPAM*** [PHP-DEV] [Discussion] Expand deprecation notice scope for partially supported callables

2022-05-26 Thread Juliette Reinders Folmer
On 12-5-2022 18:54, Juliette Reinders Folmer wrote: After the prior discussion about the same topic: https://externals.io/message/117342, I have created an RFC to expand the scope of the deprecation notices being thrown for the deprecated partially supported callables to include is_callable

[PHP-DEV] [Discussion] Expand deprecation notice scope for partially supported callables

2022-05-12 Thread Juliette Reinders Folmer
After the prior discussion about the same topic: https://externals.io/message/117342, I have created an RFC to expand the scope of the deprecation notices being thrown for the deprecated partially supported callables to include is_callable() and the callable type in PHP 8.2. With this email

Re: [PHP-DEV] [Discussion] Stricter implicit boolean coercions

2022-05-23 Thread Juliette Reinders Folmer
On 16-5-2022 17:06, Andreas Leathley wrote: Hello Internals, After the first discussion about this topic (https://externals.io/message/117608) I have created a preliminary implementation and an RFC for making implicit boolean type coercions more strict:

Re: [PHP-DEV] [Discussion] Expand deprecation notice scope for partially supported callables

2022-05-28 Thread Juliette Reinders Folmer
On 26-5-2022 20:23, Dan Ackroyd wrote: Hey Julie, On Thu, 26 May 2022 at 12:45, Juliette Reinders Folmer wrote: I propose to open the vote on this RFC tomorrow. Before you open the vote, please could you split the voting into two, one for the is_callable, and one for the callable type check

Re: [PHP-DEV] [Discussion] Expand deprecation notice scope for partially supported callables

2022-05-12 Thread Juliette Reinders Folmer
On 12-5-2022 23:30, Claude Pache wrote: Le 12 mai 2022 à 23:11, Larry Garfield a écrit : For the `callable` type declaration, I'm not opposed but is it redundant with the existing deprecation? When would you pass a callable to something and not end up calling it anyway, which would

[PHP-DEV] Re: ***SPAM*** [PHP-DEV] [VOTE] [RFC] Expand deprecation notice scope for partially supported callables

2022-06-10 Thread Juliette Reinders Folmer
On 31-5-2022 12:38, Juliette Reinders Folmer wrote: L.S., I have opened the vote on the "Expand deprecation notice scope for partially supported callables" RFC: https://wiki.php.net/rfc/partially-supported-callables-expand-deprecation-notices The vote will run for two weeks and

[PHP-DEV] Re: ***SPAM*** [PHP-DEV] [VOTE] [RFC] Expand deprecation notice scope for partially supported callables

2022-06-14 Thread Juliette Reinders Folmer
L.S., I have opened the vote on the "Expand deprecation notice scope for partially supported callables" RFC: https://wiki.php.net/rfc/partially-supported-callables-expand-deprecation-notices The vote will run for two weeks and will close on June 14, 10:30 UTC. The discussion threads about

Re: [PHP-DEV] [VOTE] [RFC] Expand deprecation notice scope for partially supported callables

2022-06-13 Thread Juliette Reinders Folmer
L.S., I have opened the vote on the "Expand deprecation notice scope for partially supported callables" RFC: https://wiki.php.net/rfc/partially-supported-callables-expand-deprecation-notices The vote will run for two weeks and will close on June 14, 10:30 UTC. The discussion threads about

Re: [PHP-DEV] Deprecated partially supported callables: should is_callable() throwa deprecation notice ?

2022-04-30 Thread Juliette Reinders Folmer
On 29-4-2022 16:36, Rowan Tommins wrote: On 29/04/2022 03:04, Juliette Reinders Folmer wrote: And that's basically exactly what I already did which led me to discover the patterns I posted about as they looked concerning (though I didn't use Nikic's tool, but the WIP PHPCompatibility sniff

[PHP-DEV] Re: ***SPAM*** Re: [PHP-DEV] Deprecated partially supported callables: should is_callable() throwa deprecation notice ?

2022-05-01 Thread Juliette Reinders Folmer
On 1-5-2022 9:54, Rowan Tommins wrote: On 1 May 2022 03:49:11 BST, Juliette Reinders Folmer wrote: As far as I understand it, if the deprecation notice is **only** thrown for the deprecated callables, the code can always be adjusted to use the recommended replacement code patterns as per

[PHP-DEV] Re: ***SPAM*** Re: [PHP-DEV] Deprecated partially supported callables: should is_callable() throwa deprecation notice ?

2022-04-28 Thread Juliette Reinders Folmer
On 22-4-2022 8:47, Rowan Tommins wrote: On 22 April 2022 02:02:58 BST, php-internals_nos...@adviesenzo.nl wrote: I agree it would be a good idea to run a package analysis, but to be fair, in all honesty that should have been done for the original RFC, which was completely missing an impact

[PHP-DEV] Re: ***SPAM*** Re: [PHP-DEV] Deprecated partially supported callables: should is_callable() throwa deprecation notice ?

2022-04-28 Thread Juliette Reinders Folmer
On 28-4-2022 21:42, Rowan Tommins wrote: On 28/04/2022 15:09, Juliette Reinders Folmer wrote: Ah! So you're basically asking for the impossible. Search for a code pattern where a deprecation would not be useful, while noone has been able to come up with one. Not at all. I'm saying look

Re: [PHP-DEV] Deprecated partially supportedcallables: should is_callable() throwa deprecation notice ?

2022-04-28 Thread Juliette Reinders Folmer
On 28-4-2022 17:00, Christoph M. Becker wrote: On 28.04.2022 at 16:09, Juliette Reinders Folmer wrote: On 22-4-2022 8:47, Rowan Tommins wrote: On 22 April 2022 02:02:58 BST,php-internals_nos...@adviesenzo.nl wrote: I agree it would be a good idea to run a package analysis, but to be fair

[PHP-DEV] Re: ***SPAM*** Re: [PHP-DEV] Deprecated partially supported callables: should is_callable() throw a deprecation notice ?

2022-05-04 Thread Juliette Reinders Folmer
On 2-5-2022 14:43, Rowan Tommins wrote: On 02/05/2022 12:56, Alexandru Pătrănescu wrote: The point is that this is not an usual deprecation, something that will change to an error in the future. In the end, it's just a change in behavior with no error before or after. It does not fit the

[PHP-DEV] Request for wiki karma

2022-05-05 Thread Juliette Reinders Folmer
L.S., As per the progression of the discussion about the deprecated partially supported callable, a new RFC is needed to expand the scope of the deprecations. See: https://externals.io/message/117342 I'd like to request karma to create this RFC. Username: jrf Kind Regards, Juliette

[PHP-DEV] Re: ***SPAM*** [PHP-DEV] Additional small features for 8.2

2022-08-18 Thread Juliette Reinders Folmer
On 18-8-2022 15:46, Jakub Zelenka wrote: Make libxml_set_external_entity_loader() return the previous loader https://github.com/php/php-src/pull/7977 Based on the PR, this introduces a new function to PHP/the `libxml` extension. Doesn't that need an RFC ? Note: I'm not opposed to the change

[PHP-DEV] Re: ***SPAM*** Re: [PHP-DEV] Re: ***SPAM*** [PHP-DEV] Additional small features for 8.2

2022-08-18 Thread Juliette Reinders Folmer
On 18-8-2022 19:12, Jakub Zelenka wrote: On Thu, Aug 18, 2022 at 5:11 PM Juliette Reinders Folmer < php-internals_nos...@adviesenzo.nl> wrote: On 18-8-2022 15:46, Jakub Zelenka wrote: Make libxml_set_external_entity_loader() return the previous loader https://github.com/php/php-src/pul

Re: [PHP-DEV] [RFC] Asymmetric visibility

2022-08-07 Thread Juliette Reinders Folmer
On 5-8-2022 19:08, Larry Garfield wrote: Ilija Tovilo and I are happy to present the first new RFC for PHP 8.3: Asymmetric Visibility. https://wiki.php.net/rfc/asymmetric-visibility Details are in the RFC, but it's largely a copy of Swift's support for the same. For what it's worth, here's

Re: [PHP-DEV] ReflectionType for iterable / PHP 8.2

2022-11-02 Thread Juliette Reinders Folmer
On 2-11-2022 18:46, Benjamin Morel wrote: Hi internals, It just came to my attention that there is a change of behaviour between PHP 8.1 and 8.2 in the way iterable is decomposed, or not, into Traversable|array when reflected: ``` function foo(): iterable {} function bar(): stdClass|iterable

Re: [PHP-DEV] Final anonymous classes

2023-04-25 Thread Juliette Reinders Folmer
On 24-4-2023 12:28, Daniil Gentili wrote: Hi all, I've submitted https://github.com/php/php-src/pull/11126 to add support for final anonymous classes, though as noted by iluuu1994, it would probably make more sense to just make all anonymous classes final by default, what do you think?

Re: [PHP-DEV] Array spread append

2023-04-05 Thread Juliette Reinders Folmer
On 6-4-2023 0:12, Vorisek, Michael wrote: Hello, I would like to open a discussion for https://github.com/php/php-src/issues/10791 .

[PHP-DEV] Unexpected behaviour when using Traits with final methods

2023-06-14 Thread Juliette Reinders Folmer
Hi all, I'm running into something which peaked my curiousity due to its unexpected behaviour, so I'm writing to the list in the hopes of finding out whether this is by design, a bug or an oversight which should be fixed (via an RFC?). > The precedence order is that members from the current

Re: [PHP-DEV] [RFC] Interface Default Methods

2023-06-15 Thread Juliette Reinders Folmer
On 15-6-2023 5:47, Levi Morrison via internals wrote: Hello, PHP Internals, I am moving my RFC for interface default methods to discussion: https://wiki.php.net/rfc/interface-default-methods. This can be a useful tool for a few reasons: 1. It can make implementing an interface easier when

Re: [PHP-DEV] RFC [Discussion]: Closure self-reference

2023-06-04 Thread Juliette Reinders Folmer
On 3-6-2023 21:11, Dan Ackroyd wrote: Hi internals, I'm now opening the discussion for the Closure self-reference RFC: https://wiki.php.net/rfc/closure_self_reference This was previously discussed as a draft here: https://externals.io/message/112216#112216 Thank-you to KapitanOczywisty for

[PHP-DEV] Updating the RFC list page

2023-08-06 Thread Juliette Reinders Folmer
RFC authors, I just noticed that the PHP 8.3 "PDO driver specific sub-classes" RFC is still listed as "in voting". The "Deprecate functions with overloaded signatures" RFC is still listed as "pending implementation". As far as I can see, both have been accepted/merged and can be moved to

Re: [PHP-DEV] Updating the RFC list page

2023-08-06 Thread Juliette Reinders Folmer
On 6-8-2023 13:13, Juliette Reinders Folmer wrote: RFC authors, I just noticed that the PHP 8.3 "PDO driver specific sub-classes" RFC is still listed as "in voting". The "Deprecate functions with overloaded signatures" RFC is still listed as "pending i

Re: [PHP-DEV] [RFC] [Discussion] PHP 8.3 deprecations

2023-06-19 Thread Juliette Reinders Folmer
On 19-6-2023 23:27, Máté Kocsis wrote: Hi Juliette, For the mb_strimwidth() proposal an impact analysis is provided at the end ("over 100 projects were reviewed"). For the other proposals there isn't and we do not believe this to be useful. We consider deprecations to be different from other

Re: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures

2023-06-19 Thread Juliette Reinders Folmer
On 19-6-2023 23:16, Máté Kocsis wrote: Hi, The impact analysis on userland code seems to be missing for some of the proposals, most notably for the proposals which I expect will have the highest impact. I'd like to ask for an impact analysis to be added to each of these: * array_keys() *

Re: [PHP-DEV] [RFC] [Discussion] PHP 8.3 deprecations

2023-06-15 Thread Juliette Reinders Folmer
On 15-6-2023 9:18, Máté Kocsis wrote: Hi everyone, As there was no discussion and complaint for a long time, we would like to move forward with the RFC. We believe Go and Tim answered Nikita's doubts elaborately, so we should make the question decided during the vote. Therefore, we'll start

Re: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures

2023-06-15 Thread Juliette Reinders Folmer
On 27-4-2023 23:28, Máté Kocsis wrote: Hi Internals, As you have possibly already experienced, overloaded signatures cause various smaller and bigger issues, while the concept is not natively supported by PHP. That's why I drafted an RFC which intends to phase out the majority of overloaded

Re: [PHP-DEV] Removing support for the disable_classes INI setting

2023-08-14 Thread Juliette Reinders Folmer
On 14-8-2023 16:17, G. P. B. wrote: Hello internals, While working on some DNF type bugs, I discovered some major issues around the disable_classes INI setting implementation. Such as: - A double-free of the type of a typed property - A use after free (which segfaults) when trying to access a

Re: [PHP-DEV] [RFC] Deprecate implicitly nullable parameter type

2024-01-23 Thread Juliette Reinders Folmer
On 22-1-2024 10:50, Gina P. Banyard wrote: Hello internals, Máté Kocsis and myself would like to propose deprecating implicitly nullable parameter types. The RFC is available on the wiki at the following address: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types Best regards,

Re: [PHP-DEV] [RFC] Deprecate implicitly nullable parameter type

2024-01-22 Thread Juliette Reinders Folmer
On 23-1-2024 3:18, Gina P. Banyard wrote: The RFC notes that PHPStan and friends have an easy flag to make the change, which is great, but still that's a minority of PHP devs that even know to use static analysis. One does not need to use a static analyser to determine or fix this issue,

Re: [PHP-DEV][VOTE][RFC] mb_ucfirst and mb_lcfirst functions

2024-02-06 Thread Juliette Reinders Folmer
On 6-2-2024 3:40, youkidearitai wrote: 2024年2月6日(火) 8:33 Tim Starling : On 2/2/24 20:27, youkidearitai wrote: I see. I'll change mb_ucfirst using titlecase. Per my comments a month ago on the GitHub issue , I think it is much better to use title case for mb_ucfirst() than to use upper case,

[PHP-DEV] What is the prevailing sentiment about extract() and compact() ?

2023-11-28 Thread Juliette Reinders Folmer
L.S., What with all the drives towards cleaner code, how do people feel nowadays about `extract()` and `compact()` still being supported ? Both have alternatives. The alternatives may be a little more cumbersome to type, but also make the code more descriptive, lessens the risk of variable

Re: [PHP-DEV] [RFC] [Discussion] Release cycle update

2023-11-13 Thread Juliette Reinders Folmer
On 10-11-2023 17:51, Jakub Zelenka wrote: Hello, I would like to propose a new process RFC for updates to PHP release cycle: https://wiki.php.net/rfc/release_cycle_update This has been discussed between release managers to make sure that all are happy as some of the points impact release

Re: [PHP-DEV] [Pre-RFC] Convert exit (and die) from language constructs to functions

2024-02-23 Thread Juliette Reinders Folmer
On 24-2-2024 2:37, Gina P. Banyard wrote: Hello internals, I've been having this mild annoyance with exit()/die() since I wrote a CLI script using a boolean $hasErrors variable to know if the script failed or not and to indicate if the script failed via a non-zero status code by doing:

Re: [PHP-DEV] [Pre-RFC] Convert exit (and die) from language constructs to functions

2024-02-23 Thread Juliette Reinders Folmer
On 24-2-2024 3:47, Gina P. Banyard wrote: On Saturday, 24 February 2024 at 01:57, Juliette Reinders Folmer wrote: Hi Gina, I'm not sure a pet-peeve is a good motivation for creating an (I expect large) breaking change. The upgrade path, I suppose, would be updating calls to `die

Re: [PHP-DEV] Re: [PHP-CVS] [php-src] master: Deprecate implicit nullable parameter types (#12959)

2024-03-14 Thread Juliette Reinders Folmer
On 14-3-2024 15:55, Matteo Beccati wrote: Hi Sebastian, Il 14/03/2024 14:15, Sebastian Bergmann ha scritto: Am 14.03.2024 um 14:07 schrieb Matteo Beccati: In my daily CI I have several builds failing today, eg. * PHPUnit 9.6 See https://github.com/sebastianbergmann/phpunit/issues/5719.

Re: [PHP-DEV] [RFC] Casing of acronyms in class and method names

2024-04-06 Thread Juliette Reinders Folmer
On 6-4-2024 14:55, Tim Düsterhus wrote: Hi On 4/5/24 23:32, Juliette Reinders Folmer wrote: I also took the liberty to ask accessibility expert Nicolas Steenhout [1] for his opinion on this topic and he has given me permission to quote his reply: > From a human readabil

Re: [PHP-DEV] [RFC][Vote announcement] Property hooks

2024-04-09 Thread Juliette Reinders Folmer
On 8-4-2024 23:39, Ilija Tovilo wrote: Hi everyone Heads-up: Larry and I would like to start the vote of the property hooks RFC tomorrow: https://wiki.php.net/rfc/property-hooks We have worked long and hard on this RFC, and hope that we have found some middle-ground that works for the

Re: [PHP-DEV] [RFC] Casing of acronyms in class and method names

2024-04-05 Thread Juliette Reinders Folmer
On 5-4-2024 19:48, Niels Dossche wrote: On 05/04/2024 19:00, Tim Düsterhus wrote: I've just written up the follow-up RFC to my previous “Casing of acronyms in class and method names” thread and I'm officially opening up the discussion period for it. Please find the following links for your

Re: [PHP-DEV] [RFC] Casing of acronyms in class and method names

2024-04-05 Thread Juliette Reinders Folmer
On 5-4-2024 22:55, Larry Garfield wrote: On Fri, Apr 5, 2024, at 7:15 PM, Tim Düsterhus wrote: Hi On 4/5/24 20:01, Juliette Reinders Folmer wrote: In the "It decreases readability" section you make a sweeping statement about accessibility, but don't back that up with research. P

Re: [PHP-DEV] [RFC][Vote announcement] Property hooks

2024-04-09 Thread Juliette Reinders Folmer
On 9-4-2024 16:03, Juliette Reinders Folmer wrote: On 8-4-2024 23:39, Ilija Tovilo wrote: Hi everyone Heads-up: Larry and I would like to start the vote of the property hooks RFC tomorrow: https://wiki.php.net/rfc/property-hooks We have worked long and hard on this RFC, and hope that we have

Re: [PHP-DEV] [RFC][Vote announcement] Property hooks

2024-04-11 Thread Juliette Reinders Folmer
Hi Ilija, On 12-4-2024 1:00, Ilija Tovilo wrote: On 9-4-2024 16:03, Juliette Reinders Folmer wrote: I realize it is late in the discussion period to speak up, but for months I've been trying to find the words to express my concerns in a polite and constructive way and have failed. First

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

2024-05-11 Thread Juliette Reinders Folmer
On 8-5-2024 15:40, Gina P. Banyard wrote: I would like to formally propose my idea for exit() as a function brought up to the list on 2024-02-24 [1] with the following RFC: https://wiki.php.net/rfc/exit-as-function There have been some slight tweaks to the implementation, namely that the

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

2024-05-14 Thread Juliette Reinders Folmer
On 11-5-2024 16:43, Gina P. Banyard wrote: On Thursday, 9 May 2024 at 15: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