Re: Fatal error: isset(CONST_ARRAY['key']) PHP 5.6
| From: | Jan Ehrhardt | Date: | Mon, 25 May 2015 15:09:43 +0000 |
| Subject: | Re: Fatal error: isset(CONST_ARRAY['key']) PHP 5.6 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-86378@lists.php.net to get a copy of this message | ||
"S.A.N" in php.internals (Mon, 25 May 2015 16:09:42 +0300):
>> It is by design; the documentation states[1]:
>>
>> | isset() only works with variables as passing anything else will
>> | result in a parse error.
>>
>> [1]
>>
>> <http://php.net/manual/en/function.isset.php#refsect1-function.isset-notes×
>> s®¥Ô;É Êàq/(h>
>
>Ok, the way it works in PHP 7.
There was some discussion on contant arrays on Stackoverflow with an
answer by Andrea Faulds (with a link to changes between 5.6 and 7.0):
http://stackoverflow.com/a/27413238/872051
Jan