|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75998 ArrayAccess's numeric strings are converted to integers
Submitted: 2018-02-22 19:00 UTC Modified: 2018-02-23 00:11 UTC
From: nospam at nospam dot example dot org Assigned:
Status: Duplicate Package: Arrays related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
42 - 21 = ?
Subscribe to this entry?

 [2018-02-22 19:00 UTC] nospam at nospam dot example dot org
$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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-23 00:11 UTC]
-Status: Open +Status: Duplicate -Package: *General Issues +Package: Arrays related
 [2018-02-23 00:11 UTC]
Duplicate of bug #63217
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Jun 22 20:01:23 2021 UTC