Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93887 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3033 invoked from network); 10 Jun 2016 20:50:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2016 20:50:32 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.180 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.192.180 mail-pf0-f180.google.com Received: from [209.85.192.180] ([209.85.192.180:33812] helo=mail-pf0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/63-14797-5182B575 for ; Fri, 10 Jun 2016 16:50:30 -0400 Received: by mail-pf0-f180.google.com with SMTP id 62so26509658pfd.1 for ; Fri, 10 Jun 2016 13:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=fByBGV8+q5aC6hSYEvCeUmkv+/t6siQgaRqMP5wjCzk=; b=XYAX8F72f055Ddv4XYpEc6dVFYmPZdkZOeGByyimKY1kJ5ZlC9WMsVDuodn3HRlypH PKifAH6lOYorZy9R00UsW8KpRQbIYnvvnV9zMMV089h9hMRnM//ieE3/KV+aNA+HZgI4 NPoHKk3eoLFdQnPoqUPcsDkZ6on4OELn4FGkNqu+l2SMqXv3QWKkyWs/R5M0q7Nijktm PFqephaZlVSkreVV7M2+1Zhvd8sGKdYN2c4+kFiM94V7l6kQhNGKnJ9z/70TlN+01R5C 6QcDmVpl/GjJcrhkxWQ5tj4Ff1kaBMkjqCov6O+Uh7FkPXY+2L2btlYiozq8GbLN4e3Y rcEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=fByBGV8+q5aC6hSYEvCeUmkv+/t6siQgaRqMP5wjCzk=; b=J7OTyZSW4kZQQnqyiK2xDuUzymX9s5M1s2mPKdnxwqoGN6hfaH3ljwSgG5gkMw5g8V XjDTPNmtY5ujDtHrr8kZ9+WeI6RstJOlfFhEBW1BNmhK7alIZFloW0PRzekyh1ouwRDR g9rdHQDDiDsCENqhL1L9QwWG7g7/0gbEn2zhhE93t8dpdA8U5mIPEW/xrBJlvKlGOEVi 2ZP23jdgduaTOaBREEcz2NlM+jfmoOhQwONXzvRAud7y0SUKVIdreKJAaZ1U7C4MpDJM 04LAeIdghBVr4WthXq3x0ucWfcKhbbULYw+OTjsWjzFWcUPDrdaVtUSK9MH39tiABIHv P3lg== X-Gm-Message-State: ALyK8tLzZyhjjc9w/+jfvxabD8M3wdUIqg1p9VzMSd8TNq3gdQ3bXf6D6aj6w1KKwPYKAs3jVV//n2I0LugBVw== X-Received: by 10.98.29.81 with SMTP id d78mr4104416pfd.142.1465591826786; Fri, 10 Jun 2016 13:50:26 -0700 (PDT) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.66.236.137 with HTTP; Fri, 10 Jun 2016 13:50:26 -0700 (PDT) In-Reply-To: References: Date: Fri, 10 Jun 2016 14:50:26 -0600 X-Google-Sender-Auth: ZQ3AuQY9IwbbfayDCigv1sQSzp4 Message-ID: To: Dmitry Stogov Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Throw Exception on Attempt of Constant Redefinition From: levim@php.net (Levi Morrison) On Fri, Jun 10, 2016 at 2:06 PM, Dmitry Stogov wrote: > Hi internals, > > > Please review: https://wiki.php.net/rfc/constant_redefinition > > > Thanks. Dmitry. Dmitry, I am not sure this change will actually allow constant propagation either. Consider this code: In this series of events: - Foo is declared to be 0 - This above file is now included inside a try-catch block that catches the error - FooFactory::make() is now called If Foo = 1 was propagated then FooFactory::make() will return 1 instead of 0. Am I missing something?