Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86376 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9781 invoked from network); 25 May 2015 13:00:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2015 13:00:58 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.21 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.21 mout.gmx.net Received: from [212.227.17.21] ([212.227.17.21:50963] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/51-32952-80D13655 for ; Mon, 25 May 2015 09:00:57 -0400 Received: from [192.168.0.101] ([95.89.139.132]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Mb45P-1Yghva1ETL-00Kfii; Mon, 25 May 2015 15:00:53 +0200 Message-ID: <55631D05.2040903@gmx.de> Date: Mon, 25 May 2015 15:00:53 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "S.A.N" , internals References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:t9NGu8EiehKxHlmZTwjx8Zt0o4FR9ns4fojhBlxSbD1mN7GcLFJ bmmSa+h9gxN+sFlzrUu7OV+17lHFYDPBoeJQ1cvfV9Wz+9BC/2MMJkP0YhCZ176JB5tojhs DnE/GEIwpsXe8Qln5g2DrgmSdbnzQ1cZRUI7RELgwcc2Okt7zewzDho6GYi9T553OdcRAki 65YuEt0WdrQcNO37x48mA== X-UI-Out-Filterresults: notjunk:1; Subject: Re: [PHP-DEV] Fatal error: isset(CONST_ARRAY['key']) PHP 5.6 From: cmbecker69@gmx.de (Christoph Becker) S.A.N wrote: > > 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? It is by design; the documentation states[1]: | isset() only works with variables as passing anything else will | result in a parse error. [1] -- Christoph M. Becker