Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95884 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10495 invoked from network); 10 Sep 2016 00:42:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Sep 2016 00:42:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.44 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.218.44 mail-oi0-f44.google.com Received: from [209.85.218.44] ([209.85.218.44:35545] helo=mail-oi0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id ED/6A-46544-ED653D75 for ; Fri, 09 Sep 2016 20:42:07 -0400 Received: by mail-oi0-f44.google.com with SMTP id c192so15883066oih.2 for ; Fri, 09 Sep 2016 17:42:06 -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=MIwNPh6s4tZNdsC1Q8u2bh6CxbZe6KHp40z3b6D2zAY=; b=1Acz4EyLG1JzBAKe9SIaMhDeR1vaH4R7WDuJInRWNIBKEqA470DPSC8K/nPeGP+sCI 7x1tkuB0W7lKwqTHB1i0UMRvraqZTC09MBWmXeYeUz7214ahcPRY4FjduE+ZJwmJiB7P 0k+UDdTCZQbn2+XAM/I5NT6MdnWEazmZIKeLF1oonGtSKrtLB1VtJoJFjFa3X5VW+ISe ZWpRvNzqgnG02eVsLDiZ4U61GSPKxwPSmI6GnjhKApE6UDPlHyQBF9hDXgvft1Z7/JbI LrMcxh1h5u4zgi+vy7RcBMNqIktHoWoFsFPQnJGPBUKEdfJAAiSMDVRID4Y8XuoHonoS VJSw== 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=MIwNPh6s4tZNdsC1Q8u2bh6CxbZe6KHp40z3b6D2zAY=; b=celqiJak4nB0x/sEJfghxWMGWhq7EwOY+IfM6cvkHoBUZH/cLMeC7/kHaYrh6SBwgh ZgPxTE7tJbFuhZzwtH3OabJ19TGWgHp7Cb0xYgyFdgPSfgqWAkYZouj/cTAyUoBt8Xjg VcR3QBSftvcQc4lVLYVUaTeu/dBA6j2c8SCySNIvoIOtVn5owuP69J2LH3oQcCWabCzP fayL354BAcKXI+qYH6FSDyP7ZT3f6E/r2ikodryGrsV9kTGS0fwWNmAdPzjyUpyl2iR7 DLj7L7l9JI0uz8ITn1NPh+aYF/6bfUnSrxrYPYCHLRdhFO9Kn/8y0rFxFhDhp0ID/ZL9 5Usg== X-Gm-Message-State: AE9vXwMIY4IfHXZpGc27yzt/b61amfFxayL0mFAQ2+hAQ4WylPl6rdWSb1os+ycN2ZmQtpXWuknTjdlw5338kw== X-Received: by 10.157.47.230 with SMTP id b35mr7984598otd.90.1473468123486; Fri, 09 Sep 2016 17:42:03 -0700 (PDT) MIME-Version: 1.0 Sender: kalle.php@gmail.com Received: by 10.107.48.77 with HTTP; Fri, 9 Sep 2016 17:42:03 -0700 (PDT) In-Reply-To: References: Date: Sat, 10 Sep 2016 02:42:03 +0200 X-Google-Sender-Auth: 2UrTKON3PlcfXqUsjxPRalHiUJE Message-ID: To: Davey Shafik Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] [VOTE] Add PHP Engine Constant Identifier From: kalle@php.net (Kalle Sommer Nielsen) Hi Davey 2016-09-10 1:49 GMT+02:00 Davey Shafik : > Hi all, > > As noted last week, I'm now opening up the vote for adding a PHP Engine > Identifier constant to PHP 7.2+ (and more importantly, to the language > spec). Additionally, there is a second vote to add corresponding > PHP_ENGINE_(*_)VERSION(_ID) constants. While I understand the reasoning behind it, I do not think that it is our problem to solve, whether we do if(defined('HHVM_VERSION')) or if(PHP_ENGINE == 'hhvm') seems irrelevant to me. If code are not compliant with the spec, then it should be that implementors responsibility to make sure that it is resolved imho. I do not have anything against HHVM or alternative implementations of PHP, it rocks, but I think we need to look in other directions, as it shouldn't be needed at all to check for what runs your PHP, it should _just_ work. For syntax incompatibility, then we can't even filter out other implementations with a constant thats executed at runtime either, not that I believe it is a major issue, but it is something to consider too. Hence my -1 -- regards, Kalle Sommer Nielsen kalle@php.net