Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75165 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34850 invoked from network); 2 Jul 2014 13:43:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2014 13:43:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.128.176 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.128.176 mail-ve0-f176.google.com Received: from [209.85.128.176] ([209.85.128.176:54499] helo=mail-ve0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/34-08005-A7C04B35 for ; Wed, 02 Jul 2014 09:43:23 -0400 Received: by mail-ve0-f176.google.com with SMTP id db12so11147146veb.35 for ; Wed, 02 Jul 2014 06:43:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ImP+XP/r+nvyLNGO5NdP6ab7ePEb0N9vIzfdNx2F6bc=; b=YlWl4ctxoaJ9Ux4IB70+sDA8Pp3SRUHOjpVl/mEoX3zhxqg5hH73YkpNGTU58iQycC TbfelzEfYl+DC/R55m+FTTN33lSDP8v7G8Cbe3A8RfUMa2lGFC6PfYQDqbeZNVEANNTd vD71DW8bgHE540ZRrIpQswanxBmlw642rX1Bog9HnordNIq2I9xyHU6N1mKz9YIk99Rt P86PrQS67/63E+Wbh69R9g78LkFA4iAAYRgRjV8S4X17ppw+c4JP7ZsTgCJpwcKywbG6 Ap53w55kiD8WK2HqyxYqIxPG/GND73ClZ3/cvP+a8bnxzOky70+ea0WpEJhDppvcyYc/ EElA== X-Gm-Message-State: ALoCoQm0c+aCmG1brkK34v5OFzS8/UenbVoJARr8JShZ9/RPruRINWsKvCZaU2f2SqgGNbwO4z2uiQSKNusez0hRhRyFf/UBgNZNy77hdqkp3a6qvD7YYLPl12EW6GIdA4I089tnNBAs MIME-Version: 1.0 X-Received: by 10.58.245.194 with SMTP id xq2mr49655592vec.26.1404308600306; Wed, 02 Jul 2014 06:43:20 -0700 (PDT) Received: by 10.52.111.71 with HTTP; Wed, 2 Jul 2014 06:43:20 -0700 (PDT) In-Reply-To: References: Date: Wed, 2 Jul 2014 17:43:20 +0400 Message-ID: To: Bob Weinand Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7bd6b7bc46d50004fd3613e0 Subject: Re: [PHP-DEV] Wired constant expression syntax and bug From: dmitry@zend.com (Dmitry Stogov) --047d7bd6b7bc46d50004fd3613e0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I don't have good ideas out of the box and I probably won't be able to look into this before next week. I afraid this feature might be a big problem later, because in last minute we may miss some cases... Thanks. Dmitry. On Wed, Jul 2, 2014 at 2:43 PM, Bob Weinand wrote: > Am 30.6.2014 um 21:32 schrieb Dmitry Stogov : > > In case you like to keep this new syntax in PHP-5.6 at least please cover > it with tests. > > > I added two tests now, > one of them is failing: the bug with the self-referencing constants Nikit= a > showed here. > I still have no idea how to fix it in a way to satisfy opcache and the > self-references detector, except copying everything again (at every > subnode)... Which is not the way to go=E2=80=A6 I hope? > Any idea? > > Bob > --047d7bd6b7bc46d50004fd3613e0--