Re: [RFC] [VOTE] Add PHP Engine Constant Identifier

From: Date: Sat, 10 Sep 2016 00:42:03 +0000
Subject: Re: [RFC] [VOTE] Add PHP Engine Constant Identifier
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-95884@lists.php.net to get a copy of this message
Hi Davey 2016-09-10 1:49 GMT+02:00 Davey Shafik <davey@php.net>: > 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

« previous php.internals (#95884) next »