Re: [PHP-DEV] [Discussion] Cookies Having Independent Partitioned State (CHIPS)

2025-07-06 Thread Claude Pache
> Le 6 juil. 2025 à 13:25, Tim Düsterhus a écrit : > > Hi > > On 7/5/25 13:52, Dmitry Derepko wrote: >> I want to allow the "Partitioned" key to be set. Shall I open RFC or is it >> possible to create only PR with improvements? >> Also, I think it may be backported to all the actual PHP versio

[PHP-DEV] [RFC Idea] Proposal: Loop Unrolling in Userland via #[Unroll(N)] Attribute

2025-07-06 Thread Khaled Alam
Hello internals, I’d like to share an early proposal idea that introduces the ability to express *loop unrolling* directly from userland using a simple attribute syntax: *#[Unroll(N)]*. Motivation Loop unrolling is a well-known optimization strategy used by compilers to reduce the overhead of con

Re: [PHP-DEV] [Discussion] Cookies Having Independent Partitioned State (CHIPS)

2025-07-06 Thread Tim Düsterhus
Hi On 7/5/25 13:52, Dmitry Derepko wrote: I want to allow the "Partitioned" key to be set. Shall I open RFC or is it possible to create only PR with improvements? Also, I think it may be backported to all the actual PHP versions. Just a PR should be fine, this follows an external standard and

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

2025-07-06 Thread Tim Düsterhus
Hi On 7/4/25 09:01, Niels Dossche wrote: First of all, that's a huge list of deprecations and I think we should tone down on that. Especially if a feature still has a purpose and is not harmful or buggy, then we should probably consider not deprecating it. It's a long list, but many of the d

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

2025-07-06 Thread Tim Düsterhus
Hi On 7/3/25 16:45, Ilija Tovilo wrote: Deprecate passing spl_autoload_call() to spl_autoload_unregister() Is such a check actually useful? We can prevent spl_autoload_unregister(spl_autoload_call(...)), but we can't prevent spl_autoload_unregister(fn($c) => spl_autoload_call($c)). It seems ve

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

2025-07-06 Thread Bob Weinand
Hey, On 4.7.2025 09:01:52, Niels Dossche wrote: Hi First of all, that's a huge list of deprecations and I think we should tone down on that. Especially if a feature still has a purpose and is not harmful or buggy, then we should probably consider not deprecating it. Yeah, I agree. The list

Re: [PHP-DEV] [Discussion] Cookies Having Independent Partitioned State (CHIPS)

2025-07-06 Thread Rowan Tommins [IMSoP]
On 5 July 2025 23:26:18 BST, Ben Ramsey wrote: >The Partitioned parameter isn’t supported in Firefox or Safari. From what I >can tell, it’s only supported in Chromium-based browsers. Safari 18.4 >supported it, but they removed the support in 18.5. I’d like to understand >why, but I haven’t been

Re: [PHP-DEV] Re: [RFC] [Discussion] #[\DelayedTargetValidation] attribute

2025-07-06 Thread Tim Düsterhus
Hi On 7/5/25 00:49, Daniel Scherzer wrote: If there is no further feedback, I intend to start a vote in a few days. Looking at your #[\Deprecated] for traits RFC (https://externals.io/message/127912): How will #[\DelayedTargetValidation] interact with the `validator` of `zend_internal_attr

Re: [PHP-DEV] [RFC Idea] main() entry point for PHP

2025-07-06 Thread Rowan Tommins [IMSoP]
On 4 July 2025 15:49:59 BST, fennic log wrote: >This is basically an idea I have for PHP to support a main entry point. >Where regardless of execution, if you run a PHP file, in CLI or Web >request. >If the file that is executed contains a main function, that is >automatically executed by the engi

Re: [PHP-DEV] [RFC] [Discussion] #[\Deprecated] for traits

2025-07-06 Thread Tim Düsterhus
Hi On 7/6/25 01:30, Daniel Scherzer wrote: I'd like to start the discussion for a new RFC about adding support for #[\Deprecated] on traits. * RFC: https://wiki.php.net/rfc/deprecated_traits * Implementation: https://github.com/php/php-src/pull/19045 Thank you. That makes sense to me. On a fi

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

2025-07-06 Thread Bob Weinand
Hey Tim, On 6.7.2025 15:35:16, Tim Düsterhus wrote: Hi Since this is a recurring thing, I feel compelled to point out terminology: A deprecation in itself is not a breaking change. Let me disagree with this. Yes, a deprecation in *itself* doesn't break running code. However it is both a) an

Re: [PHP-DEV] Re: [RFC] [Discussion] #[\DelayedTargetValidation] attribute

2025-07-06 Thread Daniel Scherzer
On Sun, Jul 6, 2025 at 5:48 AM Tim Düsterhus wrote: > Hi > > On 7/5/25 00:49, Daniel Scherzer wrote: > > If there is no further feedback, I intend to start a vote in a few days. > > Looking at your #[\Deprecated] for traits RFC > (https://externals.io/message/127912): > > How will #[\DelayedTarge