Fatal error: isset(CONST_ARRAY['key']) PHP 5.6
| From: | S.A.N | Date: | Mon, 25 May 2015 10:46:55 +0000 |
| Subject: | Fatal error: isset(CONST_ARRAY['key']) PHP 5.6 | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-86374@lists.php.net to get a copy of this message | ||
<?php
const CONST_ARRAY =
[
'key' => 'value'
];
isset(CONST_ARRAY['key']); // Fatal error: Cannot use isset() on the
result of an expression (you can use "null !== expression" instead)
?>
It is design, or a bug?