|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67149 Every array index of a NULL value exists
Submitted: 2014-04-28 21:10 UTC Modified: 2014-04-28 21:28 UTC
From: lezso69 at gmail dot com Assigned:
Status: Duplicate Package: Arrays related
PHP Version: 5.5.11 OS: Linux
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: lezso69 at gmail dot com
New email:
PHP Version: OS:


 [2014-04-28 21:10 UTC] lezso69 at gmail dot com
From manual page:

When I assign a NULL value to a variable, and access it as an array, I got no warning.

Test script:
$notarray = null;

Expected result:
Some warning should be shown.

Actual result:
Just returns NULL.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-04-28 21:28 UTC]
-Status: Open +Status: Duplicate -Type: Bug +Type: Feature/Change Request
 [2014-04-28 21:28 UTC]
See bug #62769.
 [2014-04-28 21:28 UTC]
-Type: Feature/Change Request +Type: Bug
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 16:01:28 2024 UTC