Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86378 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18677 invoked from network); 25 May 2015 15:09:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2015 15:09:53 -0000 X-Host-Fingerprint: 92.66.168.50 unknown Received: from [92.66.168.50] ([92.66.168.50:21799] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/10-17853-D3B33655 for ; Mon, 25 May 2015 11:09:52 -0400 To: internals@lists.php.net Date: Mon, 25 May 2015 17:09:43 +0200 Message-ID: <9ie6mat08lojsej8l4lilqi67migpq9dc7@4ax.com> References: <55631D05.2040903@gmx.de> X-Newsreader: Forte Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Posted-By: 92.66.168.50 Subject: Re: [PHP-DEV] Fatal error: isset(CONST_ARRAY['key']) PHP 5.6 From: phpdev@ehrhardt.nl (Jan Ehrhardt) "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] >> > >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