Re: Re: [PREVOTE] PHP Engine Constants

From: Date: Tue, 06 Sep 2016 23:24:20 +0000
Subject: Re: Re: [PREVOTE] PHP Engine Constants
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-95709@lists.php.net to get a copy of this message
Hi! > And then when the next people who want to build an alternative engine > come along, they will include this constant, to make their engine as > 'compatible' as possible with the current PHP engine. Yes, same things that happened to user-agent string in browsers may start happening here. But I still think that doesn't invalidate idea of having user-agent identification. So we just need to make it very clear what we expect from people that set this string *and* from people that use this string (e.g. using "if(PHP_ENGINE !== 'php') die()" is discouraged since then everybody would set their PHP_ENGINE to php just so that software would work) - then we can hope it won't be abused too much... -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#95709) next »