Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76165 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39487 invoked from network); 26 Jul 2014 22:02:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jul 2014 22:02:38 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.83 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.83 smtp83.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.83] ([108.166.43.83:55464] helo=smtp83.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 55/55-22380-D7524D35 for ; Sat, 26 Jul 2014 18:02:38 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp19.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 6C7D3180273; Sat, 26 Jul 2014 18:02:44 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp19.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id C7B4B180144; Sat, 26 Jul 2014 18:02:43 -0400 (EDT) X-Sender-Id: smalyshev@sugarcrm.com Received: from Stass-MacBook-Pro.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net [108.66.6.48]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:465 (trex/5.2.10); Sat, 26 Jul 2014 22:02:44 GMT Message-ID: <53D42583.9070201@sugarcrm.com> Date: Sat, 26 Jul 2014 15:02:43 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Nikita Popov , Julien Pauli CC: Dmitry Stogov , Bob Weinand , PHP Internals References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Weird constant expression syntax and bug From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > Could somebody please clarify what issues are still open here? From what > I understand, both the opcache issue and the recursion issue are fixed > now. What's the discussion about? As I understand, the issue is that if you define class constant like this: class Foo { const Bar = [0]; } everything works fine. But if you do var_dump(Foo::Bar), it bombs out with fatal error (the same goes for every other usage of that constant in expression). Please correct me if my info is outdated, but I think it is a behavior that should not be left in the release. If for some reason we can't make array constants work normally, we should just omit them altogether. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/