> On Feb 3, 2016, at 4:03 AM, Davey Shafik <da...@php.net> wrote: > > Hi all, > > I want to bring forward a very simple RFC to help solve an issue I had this > week of writing unit tests that take into account differing behaviors in > PHP and HHVM. > > It's actually very difficult to be able to reliably determine that you are > running the _real_ PHP runtime and not something mimicking it.
Can you give more information on why “real PHP” and “not real PHP” would be useful to you? It sounds like you are working around HHVM bugs, so checking ‘am I on HHVM?’ is the correct thing to do - ‘Am I on something that is not PHP?’ is not, as other engines may not have the same bugs. Regards, - Fred -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php