Re: [PHP-DEV] RFC: Stop to automatically cast numeric-string to int when using them as array-key

2021-12-29 Thread Stanislav Malyshev
Hi! I don't think this behavior should be considered as "normal" and would like to propose to change this for PHP 9, as it's a BC-break. To me it can and It'd not be just a BC break, it'd be an absolutely massive BC break that has a potential to break a ton of code and would be extremely

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-29 Thread Christoph M. Becker
On 29.12.2021 at 18:41, Horváth V. wrote: > On 2021. 12. 29. 14:02, Christoph M. Becker wrote: > >> This is why I suggested to postpone Windows support for now. > > This would have to be done either way and I prefer to work from the host > OS on my computer, especially since the Windows side of

Re: [PHP-DEV] RFC: Stop to automatically cast numeric-string to int when using them as array-key

2021-12-29 Thread Vincent Langlet
> On 29/12/2021 16:58, Lynn wrote: > > While I'd love for this inconsistency to go away, I also know that this > is > > most likely such a big change that it causes months of work and broken > code > > because it relies on this behavior. It wouldn't surprise me if this > > singular change would

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-29 Thread Horváth V .
On 2021. 12. 29. 14:02, Christoph M. Becker wrote: This is why I suggested to postpone Windows support for now. This would have to be done either way and I prefer to work from the host OS on my computer, especially since the Windows side of things is what's messy right now and I don't like

Re: [PHP-DEV] RFC: Stop to automatically cast numeric-string to int when using them as array-key

2021-12-29 Thread Rowan Tommins
On 29/12/2021 16:58, Lynn wrote: While I'd love for this inconsistency to go away, I also know that this is most likely such a big change that it causes months of work and broken code because it relies on this behavior. It wouldn't surprise me if this singular change would cause more work than

Re: [PHP-DEV] RFC: Stop to automatically cast numeric-string to int when using them as array-key

2021-12-29 Thread Lynn
On Wed, Dec 29, 2021 at 4:42 PM Vincent Langlet wrote: > Hi, > > I recently discovered that an array was automatically casting > numeric-string keys to int if it was possible. For instance, the following > array: > > $a = ['01' => '01', '10' => '10']; > > Is not an array with the key '01' and

[PHP-DEV] RFC: Stop to automatically cast numeric-string to int when using them as array-key

2021-12-29 Thread Vincent Langlet
Hi, I recently discovered that an array was automatically casting numeric-string keys to int if it was possible. For instance, the following array: $a = ['01' => '01', '10' => '10']; Is not an array with the key '01' and '10' but instead consider the second key as an int. This has some

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-29 Thread Christoph M. Becker
On 29.12.2021 at 13:38, Horváth V. wrote: > Just a quick update on this in between the holidays. > > There are indeed quite a few of the libraries provided in the php-src's > Windows SDK that are missing from Conan Center Index, which is the > default remote when fetching dependencies using

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-29 Thread Horváth V .
Hey internals, Just a quick update on this in between the holidays. There are indeed quite a few of the libraries provided in the php-src's Windows SDK that are missing from Conan Center Index, which is the default remote when fetching dependencies using Conan. I have submitted a recipe for