Bug->Req #67149 [Opn->Dup]: Every array index of a NULL value exists

From: Date: Mon, 28 Apr 2014 21:28:25 +0000
Subject: Bug->Req #67149 [Opn->Dup]: Every array index of a NULL value exists
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185484@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67149&edit=1

 ID:                 67149
 Updated by:         requinix@php.net
 Reported by:        lezso69 at gmail dot com
 Summary:            Every array index of a NULL value exists
-Status:             Open
+Status:             Duplicate
-Type:               Bug
+Type:               Feature/Change Request
 Package:            Arrays related
 Operating System:   Linux
 PHP Version:        5.5.11
 Block user comment: N
 Private report:     N

 New Comment:

See bug #62769.


Previous Comments:
------------------------------------------------------------------------
[2014-04-28 21:10:14] lezso69 at gmail dot com

Description:
------------
---
From manual page: http://www.php.net/language.types.null
---

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

Test script:
---------------
<?php
$notarray = null;
var_dump($notarray[0]);

Expected result:
----------------
Some warning should be shown.

Actual result:
--------------
Just returns NULL.


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=67149&edit=1


Thread (2 messages)

« previous php.bugs (#185484) next »