|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #74874 You can not typecast through array_map
Submitted: 2017-07-07 09:18 UTC Modified: 2017-07-07 09:33 UTC
From: body00 at gmail dot com Assigned:
Status: Not a bug Package: Arrays related
PHP Version: 7.1.7 OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: body00 at gmail dot com
New email:
PHP Version: OS:


 [2017-07-07 09:18 UTC] body00 at gmail dot com
When you try to typecast the values of an array such as 
transforms $myArray into NULL

Test script:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-07-07 09:30 UTC] mail at pmmaga dot net
The cast itself is not a function. Using strval you can accomplish what you are looking for.

 [2017-07-07 09:33 UTC]
-Status: Open +Status: Not a bug
 [2017-07-07 09:33 UTC]
As explained by pmmaga, this is not a bug.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Sep 27 16:01:24 2020 UTC