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

2024-05-28 Thread Daikaras
On 2024.05.08 16:40, Gina P. Banyard wrote: Hello Internals, 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, na

Re: [PHP-DEV] RFC [Discussion]: array_find PHP internals

2024-05-28 Thread Daikaras
On 2024.04.07 17:20, Joshua Rüsweg wrote: Hi I have created an RFC to add the function array_find which returns the first element for which a predicate callback returns true. This is a function which I missed often. Furthermore this type of function is implemented with other programming langua

Re: [PHP-DEV] [RFC] [Discussion] array_first() and array_last()

2025-04-08 Thread Daikaras
On 4/5/2025 6:51 PM, Niels Dossche wrote: Hi internals I'm opening the discussion for the RFC "array_first() and array_last()". https://wiki.php.net/rfc/array_first_last Kind regards Niels -1 because returning `null` for empty arrays is still wrong. Whatever similar behavior exists should b

Re: [PHP-DEV] [RFC] Add preserve_key_types to array_keys() to prevent unintended int conversion

2025-05-27 Thread Daikaras
As Kamil mentioned, this is not limited to a single function but to array type as a whole. See previous discussion https://externals.io/message/116735. On 5/24/2025 6:43 PM, 马正强 wrote: I propose adding a |preserve_key_types| parameter to |array_keys()| to address issues caused by automatic c

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

2025-07-09 Thread Daikaras
We propose to deprecate the following non-standard cast names: * |(integer)| * |(boolean)| * |(double)| * |(binary)| Hello, Just wondering is this going to affect `settype()` function? There is already some disparity in that `settype()` supports `integer/boolean/double`

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

2025-07-09 Thread Daikaras
On 7/10/2025 12:23 AM, Claude Pache wrote: Le 9 juil. 2025 à 14:21, Gina P. Banyard a écrit : On Wednesday, 9 July 2025 at 08:17, Daikaras wrote: We propose to deprecate the following non-standard cast names: * |(integer)| * |(boolean)| * |(double)| * |(binary