Req #37676 [Opn]: using Array access operator [] on boolean variable does not show Notice

From: Date: Fri, 09 Jan 2015 00:26:15 +0000
Subject: Req #37676 [Opn]: using Array access operator [] on boolean variable does not show Notice
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189801@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=37676&edit=1 ID: 37676 Updated by: ajf@php.net Reported by: tgross at m-s dot de Summary: using Array access operator [] on boolean variable does not show Notice Status: Open Type: Feature/Change Request Package: Scripting Engine problem Operating System: * PHP Version: * Block user comment: N Private report: N New Comment: Still exists in PHP 5.6: $ php -d error_reporting=E_ALL -r '$x = false; var_dump($x[5]);' NULL Previous Comments: ------------------------------------------------------------------------ [2013-08-20 08:33:54] requinix@php.net Related To: Bug #65484 ------------------------------------------------------------------------ [2013-02-01 20:12:01] jason at fuzzystatic dot com Bug still occurs on a 5.5-dev version. example: http://codepad.viper-7.com/rn5kBm ------------------------------------------------------------------------ [2012-09-30 01:06:20] laruence@php.net yeah, I remembered there was a similar bug report of this behavior, and I seems made a fix for it. if I remember correctlly, it was merged into master-branch already ------------------------------------------------------------------------ [2012-09-29 12:20:33] svodev at gmail dot com The same issue is with NULL values; $a = NULL; echo $a['b']; ...and nothing happen ------------------------------------------------------------------------ [2006-06-02 11:25:00] tony2001@php.net Reclassified as feature request. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=37676 -- Edit this bug report at https://bugs.php.net/bug.php?id=37676&edit=1

« previous php.bugs (#189801) next »