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

2021-12-30 Thread Christian Schneider
Am 31.12.2021 um 03:21 schrieb Kirill Nesmeyanov : > I support this behavior fix because in its current form, due to a similar > problem (almost?), all PSR-7 implementations contain bugs that violate > RFC7230 (section 3.2: > https://datatracker.ietf.org/doc/html/rfc7230#section-3.2 ). Thus, >

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

2021-12-30 Thread Kirill Nesmeyanov
>Среда, 29 декабря 2021, 18:42 +03:00 от 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 '

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

2021-12-30 Thread Lynn
On Thu, Dec 30, 2021 at 5:54 PM Vincent Langlet < mr.vincent.lang...@gmail.com> wrote: > Would you still consider this as a massive BC break if > - The type of the key don't change anymore i.e. array_search(0, ['10' => > 0]) will be '10' and not 10. > - $array[10] still return $array[10] ?? $array

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

2021-12-30 Thread Vincent Langlet
> 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 hard to > detect. This is not something that should be changed in an advanced > version of the language. > Would you still consider this as a massive BC break

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-30 Thread Horváth V .
Like I said in another e-mail, I wish to work on my host OS and this is something that would need to be done either way. It won't take me long either and PHP has been chugging along nicely so far without CMake. vcpkg has more dependencies missing than Conan and Conan has the advantage of providin

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-30 Thread Pierre Joye
On Wed, Dec 29, 2021, 8:02 PM Christoph M. Becker wrote: > 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,