Re: [RFC] Change behaviour of array sort functions to return a copy of the sorted array
On Sunday, 20 October 2024 at 18:42, Gina P. Banyard <[email protected]> wrote:
> Hello internals,
>
> I would like to propose a short RFC to make the return value of the sort() and similar
> functions more useful:
> https://wiki.php.net/rfc/array-sort-return-array
>
> I intend for the discussion to last 2 weeks and then open the vote.
Hello internals,
I have decided to withdraw this RFC.
The primary way for this to have been usable would have been to use the engine level
"@prefer-ref" parameter "attribute".
However, this is rarely used and adds some minor complexity to the engine that mainly exists to
support less than ideal API/functions or other limitations currently with PHP.
And it is probably wise not to introduce more usages of said attribute.
The alternative, that I would support but don't intend to do, is to add a new set of
sorted()
functions.
Best regards,
Gina P. Banyard
Thread (24 messages)