#41210 [Opn->Bgs]: unexpected behaviour on access null as an associative array

From: Date: Fri, 27 Apr 2007 08:03:39 +0000
Subject: #41210 [Opn->Bgs]: unexpected behaviour on access null as an associative array
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-111984@lists.php.net to get a copy of this message
ID: 41210 Updated by: johannes@php.net Reported By: bgoldschmidt at rapidsoft dot de -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: debian PHP Version: 5.2.1 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php . Previous Comments: ------------------------------------------------------------------------ [2007-04-27 07:43:02] bgoldschmidt at rapidsoft dot de Description: ------------ Trying to access null as an associative array works just fine and doesn't result in an error, as it should. Reproduce code: --------------- <?php $testarray = null; $a = $testarray['test']; // this should yield to an error echo('$a = '.$a); // outputs '$a = ' ?> Expected result: ---------------- An error. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41210&edit=1

« previous php.bugs (#111984) next »