Re: [RFC][DISCUSSION] Change var_export() array syntax touse short hand arrays
| From: | Sherif Ramadan | Date: | Wed, 08 Apr 2020 13:29:15 +0000 |
| Subject: | Re: [RFC][DISCUSSION] Change var_export() array syntax touse short hand arrays | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-109566@lists.php.net to get a copy of this message | ||
On Wed, Apr 8, 2020 at 9:22 AM Benjamin Morel <benjamin.morel@gmail.com>
wrote:
> > VAR_EXPORT_NO_INDEX
>
> Note that I wouldn't consider a BC break to change var_export()'s
> behaviour to always discard indexes when they're numeric, I'm not sure this
> should even be an option!
>
>
Well, it might if people are testing the output of var_export(), like in
the phpt tests. I wouldn't have considered the short array syntax a BC
break either if it weren't for that little pot hole.
> - Ben
>