[PHP-DEV] [RFC idea] Target-aware attributes

2025-07-02 Thread Andreas Hennings
This topic was discussed in the past as "Declaration-aware attributes", and mentioned in the discussion to "Amendments to Attributes". I now want to propose a close-to-RFC iteration of this. (I don't have RFC Karma, my wiki account is "Andreas Hennings (donquixote)") - Primary proposal ==

Re: [PHP-DEV] [RFC][DISCUSSION] Add RFC 4648 compliant data encoding API

2025-07-02 Thread Larry Garfield
On Wed, Jul 2, 2025, at 2:25 PM, ignace nyamagana butera wrote: >> >> I don't think it needs to be added to the enum, necessarily. Just make it a >> nullable argument to base64_decode. >> >> function base64_decode(string $string, bool $strict = false, ?DecodingMode = >> null): string|false >>

Re: [PHP-DEV] [RFC] Deprecations for PHP 8.5

2025-07-02 Thread Kamil Tekiela
On Wed, Jul 2, 2025, 21:58 Gina P. Banyard wrote: > Hello internals, > > It is this time of year again where we proposed a list of deprecations to > add in PHP 8.5: > > https://wiki.php.net/rfc/deprecations_php_8_5 > > As a reminder, this list has been compiled over the course of the past > year

Re: [PHP-DEV] [RFC] Deprecations for PHP 8.5

2025-07-02 Thread Larry Garfield
On Wed, Jul 2, 2025, at 2:56 PM, Gina P. Banyard wrote: > Hello internals, > > It is this time of year again where we proposed a list of deprecations > to add in PHP 8.5: > > https://wiki.php.net/rfc/deprecations_php_8_5 > > As a reminder, this list has been compiled over the course of the past >

Re: [PHP-DEV] [RFC][DISCUSSION] Add RFC 4648 compliant data encoding API

2025-07-02 Thread ignace nyamagana butera
> > > I don't think it needs to be added to the enum, necessarily. Just make it > a nullable argument to base64_decode. > > function base64_decode(string $string, bool $strict = false, ?DecodingMode > = null): string|false > > That would leave the default behavior of the function intact, but also

Re: [PHP-DEV] [RFC] Deprecations for PHP 8.5

2025-07-02 Thread Calvin Buckley
On Jul 2, 2025, at 4:56 PM, Gina P. Banyard wrote: > > Hello internals, > > It is this time of year again where we proposed a list of deprecations to add > in PHP 8.5: > > https://wiki.php.net/rfc/deprecations_php_8_5 > > As a reminder, this list has been compiled over the course of the past

Re: [PHP-DEV] [RFC] Partial Function Application v2

2025-07-02 Thread Tim Düsterhus
Hi Am 2025-06-28 07:06, schrieb Larry Garfield: Hi folks. Arnaud and I would like to present take-2 at Partial Function Application. https://wiki.php.net/rfc/partial_function_application_v2 I've now had a *quick* look at the implementation and the following questions came up that the RFC d

Re: [PHP-DEV] [RFC][DISCUSSION] Object-oriented curl API v2

2025-07-02 Thread Larry Garfield
On Wed, Jul 2, 2025, at 10:48 AM, Eric Norris wrote: > Having thought about this some more, while I'm still feeling somewhat > positive about my suggestion I'm just not sure it's the best way to > proceed. I started to sketch what a BasicHttpHandle class would look > like, and I'm stuck on how to

Re: [PHP-DEV] [RFC][DISCUSSION] Object-oriented curl API v2

2025-07-02 Thread Larry Garfield
On Wed, Jul 2, 2025, at 10:48 AM, Eric Norris wrote: >> Based on the feedback so far (I do plan on waiting for more responses >> to your email), and on my own preferences, I wonder if there is a >> hybrid option I could propose. Perhaps the RFC could offer both a >> \Curl\Handle (tentative name) to

Re: [PHP-DEV] [RFC][DISCUSSION] Add RFC 4648 compliant data encoding API

2025-07-02 Thread Larry Garfield
On Wed, Jul 2, 2025, at 10:10 AM, ignace nyamagana butera wrote: >> > Perhaps we should include an option in the new API to emulate the old >> > behaviour, named as "legacy" or "unsafe" and immediately soft-deprecated >> > with a note in the manual, similar to the MT_RAND_PHP mode in the >> > Ra

Re: [PHP-DEV][RFC] Deprecate type juggling to and from bool type within the function type juggling context

2025-07-02 Thread Christian Schneider
Am 01.07.2025 um 14:40 schrieb Gina P. Banyard : >> The RFC talks about "from" AND "to" bool conversion but the examples under >> Backward Incompatible Changes only seem mention "from" bool, is that correct? > > I didn't think adding examples for "to" bool was useful, but I can add some. Thanks!

Re: [PHP-DEV] [RFC][DISCUSSION] Add RFC 4648 compliant data encoding API

2025-07-02 Thread Rowan Tommins [IMSoP]
On 1 July 2025 22:27:14 BST, ignace nyamagana butera wrote:] >- The current base64_decode function operates in a lenient mode by default, >accepting characters outside the valid Base64 alphabet and ignoring >the padding character wherever it is in the string. > > base64_decode('dG9===0bw??',

[PHP-DEV] RFC Template updates

2025-07-02 Thread Volker Dusch
Hi internals, Two weeks ago, after discussions about the PHP 30th event in Amsterdam with some core developers and in the foundation, we introduced some changes to the RFC Template. The changes were aimed at reflecting current practices and requirements for RFCs and making it more approachable for

Re: [PHP-DEV] [RFC][DISCUSSION] Add RFC 4648 compliant data encoding API

2025-07-02 Thread ignace nyamagana butera
> > > Perhaps we should include an option in the new API to emulate the old > behaviour, named as "legacy" or "unsafe" and immediately soft-deprecated > with a note in the manual, similar to the MT_RAND_PHP mode in the > Randomizer API < > https://www.php.net/manual/en/random-engine-mt19937.constru

Re: [PHP-DEV] [RFC] Partial Function Application v2

2025-07-02 Thread Arnaud Le Blanc
Hi Tim, We will update the RFC, but here are a few answers: On Wednesday, July 2nd, 2025 at 17:05, Tim Düsterhus wrote: > I've now had a quick look at the implementation and the following > questions came up that the RFC does not answer (and the tests in the PR > do not obviously answer either):

Re: [PHP-DEV] [RFC][DISCUSSION] Object-oriented curl API v2

2025-07-02 Thread Eric Norris
> Based on the feedback so far (I do plan on waiting for more responses > to your email), and on my own preferences, I wonder if there is a > hybrid option I could propose. Perhaps the RFC could offer both a > \Curl\Handle (tentative name) to address position 1, and a > \Curl\BasicHttpHandle (also

Re: [PHP-DEV] [RFC][DISCUSSION] Object-oriented curl API v2

2025-07-02 Thread Ben Ramsey
> On Jul 2, 2025, at 10:48, Eric Norris wrote: > >> Based on the feedback so far (I do plan on waiting for more responses >> to your email), and on my own preferences, I wonder if there is a >> hybrid option I could propose. Perhaps the RFC could offer both a >> \Curl\Handle (tentative name) to a

Re: [PHP-DEV] [RFC][DISCUSSION] Object-oriented curl API v2

2025-07-02 Thread Paul M. Jones
Hi all, > The question of PHP-native request/response objects has come up a couple of > times, and even had an RFC that went to a vote (declined). My stance has > been, and remains, that ... they should be powerful enough to effectively > replace/displace PSR-7. Where and when have you previo

Re: [PHP-DEV] [RFC][DISCUSSION] Object-oriented curl API v2

2025-07-02 Thread Larry Garfield
On Wed, Jul 2, 2025, at 12:34 PM, Paul M. Jones wrote: > Hi all, > >> The question of PHP-native request/response objects has come up a couple of >> times, and even had an RFC that went to a vote (declined). My stance has >> been, and remains, that ... they should be powerful enough to effective

Re: [PHP-DEV] [RFC] Partial Function Application v2

2025-07-02 Thread Gina P. Banyard
On Wednesday, 2 July 2025 at 17:26, Arnaud Le Blanc wrote: > On Wednesday, July 2nd, 2025 at 17:05, Tim Düsterhus t...@bastelstu.be wrote: > > is_callable($f, callable_name: $name); > > var_dump($name); > > > Closure::__invoke (like FCCs) I'm slightly hijacking this to mention that this seems l

Re: [PHP-DEV] [RFC][DISCUSSION] Object-oriented curl API v2

2025-07-02 Thread Paul M. Jones
Hi all, > On Jul 2, 2025, at 12:41, Larry Garfield wrote: > > On Wed, Jul 2, 2025, at 12:34 PM, Paul M. Jones wrote: >> Hi all, >> >>> The question of PHP-native request/response objects has come up a couple of >>> times, and even had an RFC that went to a vote (declined). My stance has >>>

[PHP-DEV] [RFC] Deprecations for PHP 8.5

2025-07-02 Thread Gina P. Banyard
Hello internals, It is this time of year again where we proposed a list of deprecations to add in PHP 8.5: https://wiki.php.net/rfc/deprecations_php_8_5 As a reminder, this list has been compiled over the course of the past year by various different people. And as usual, each deprecation will

[PHP-DEV] Pre-RFC: allow #[Override] on properties

2025-07-02 Thread Jiří Pudil
Hi internals, I would like to propose extending the target of the #[Override] attribute to include properties. The original RFC explicitly excluded properties [1] for reasons that have since then changed drastically: the additions in 8.4 have allowed properties to become a more prominent part