Re: I have two identical keys in an array.
| From: | Aziz Saleh | Date: | Sat, 05 Mar 2022 14:08:53 +0000 |
| Subject: | Re: I have two identical keys in an array. | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327935@lists.php.net to get a copy of this message | ||
Try outputting the keys with md5 or base64_encode (see if the results are
the same).
On Sat, Mar 5, 2022 at 8:55 AM Christoph M. Becker <cmbecker69@gmx.de>
wrote:
> On 05.03.2022 at 14:20, Romain Moyne wrote:
>
> > it's nuts. I don't understand. It started to happen when I upgrade from
> php
> > 7.2 to php 8.0
> > I am running the latest 8.0.16 php version.
> >
> > the fact is I can't reproduce it, it happens after a few iteration around
> > items. Sometimes it happens, sometimes not.
>
> Well, then it's hard to further track that down. It *might* be related
> to JIT compilation; make sure to test without it
> (
opcache.jit_buffer_size=0), or even with OPcache disabled
> altogether.
>
> > On Fri, 4 Mar 2022 at 20:15, AllenJB <php.lists@allenjb.me.uk> wrote:
> >>
> >> On 04/03/2022 15:34, Romain Moyne wrote:
> >
> >> My best guess would be that one or more of the keys contains a
> >> non-printable character, such as a null byte.
>
> Unless the key is an integer, var_dump() will put double-quotes around
> it, so apparently, there are no non-printable characters involved here.
>
> --
> Christoph M. Becker
>