Bug #75998 [Opn->Dup]: ArrayAccess's numeric strings are converted to integers
| From: | requinix@php.net | Date: | Fri, 23 Feb 2018 00:11:10 +0000 |
| Subject: | Bug #75998 [Opn->Dup]: ArrayAccess's numeric strings are converted to integers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-214074@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75998&edit=1
ID: 75998
Updated by: requinix@php.net
Reported by: nospam at nospam dot example dot org
Summary: ArrayAccess's numeric strings are converted to
integers
-Status: Open
+Status: Duplicate
Type: Bug
-Package: *General Issues
+Package: Arrays related
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Duplicate of bug #63217
Previous Comments:
------------------------------------------------------------------------
[2018-02-22 19:00:03] nospam at nospam dot example dot org
Description:
------------
$myArray["345"] = 123; is converted to $myArray->offsetSet(345, 123) but should be
$myArray->offsetSet("345", 123)
I tried with strict_types but the result did not change
Thanks you
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75998&edit=1