Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91071 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59714 invoked from network); 3 Feb 2016 22:29:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2016 22:29:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@daveyshafik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@daveyshafik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain daveyshafik.com from 209.85.161.171 cause and error) X-PHP-List-Original-Sender: me@daveyshafik.com X-Host-Fingerprint: 209.85.161.171 mail-yw0-f171.google.com Received: from [209.85.161.171] ([209.85.161.171:33236] helo=mail-yw0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/A3-34960-46F72B65 for ; Wed, 03 Feb 2016 17:29:57 -0500 Received: by mail-yw0-f171.google.com with SMTP id z185so13908783ywf.0 for ; Wed, 03 Feb 2016 14:29:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daveyshafik-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=0M3QS/zW70bIwn6v26FjBr4vo6AXsvMiFC8vSVB/i3g=; b=BSsvFp6W/LS2UsCfdJjyxSwfHsf8oFjy+HD3vr2jeuQZum2TQqqdUoU4P1Ka4/N2bF 7dBs6dhgh55Mo5nOCBjLUx81eVp4n38z6itPPRKNcc49sAq+SFcioV2a5j1gkxLriuHf sHMEARwhIqhDJrswGJ/A8FpOi0c6zUjs2LILq2ERMkJiYv93vfcnrZ2lt5mW7k77IWpW WhcmARnROgMod3YMg3xQEZN2Reg1gSCMdW2DN3Vq+cDaHqxf32ThoKGBcxXiWJ8xd/yK doTv+YoJZMBBR9tKXqYav+c0ECDHLgHh2I88L2UjNSytnhZVTFH1+UvxLocY2JUH+IwK AlNA== 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:date :message-id:subject:from:to:cc:content-type; bh=0M3QS/zW70bIwn6v26FjBr4vo6AXsvMiFC8vSVB/i3g=; b=SbFiqSthL+71OjHDlJfkAzG0KWkLWgza08LH5LI8IFCtFBY5+CJgX/sdyiqH9lluZM HFCUm+XRmRGKiq7hyz+PM+GwrzAFEsr1ExBa+lyJDV58L8BqcTVYwl53ZrUjEJlsHuFc 4SczXEDahIBPSFqgX6eZjtgjDD0fm4EV3RmJm0w1dnvd3/URhdqP3XPZ5zrfo8hovqBO dw7i3cQRO/zShaP88dvR2XS7VkJdokyxlxB3p4lSY915eAyTi0ZPrnKFH3zztw9YfxLL 8lnZ7tt8zIo0BpF2C7HHokEMok8fExV4kSaNDhKAvaaYOmPhz0FoL4nMA21HZ6fLsQ+b YCrQ== X-Gm-Message-State: AG10YORUq+FqyAcEMPW+Px+jZ+ZlFzxdICYwYtzMP/axomhXC1nvlHult6STXnto7h4x1i6sZqMP1Xq8fpm1wPMg MIME-Version: 1.0 X-Received: by 10.129.159.206 with SMTP id w197mr2190687ywg.233.1454538594050; Wed, 03 Feb 2016 14:29:54 -0800 (PST) Sender: me@daveyshafik.com Received: by 10.129.159.193 with HTTP; Wed, 3 Feb 2016 14:29:53 -0800 (PST) In-Reply-To: <216F291E-F174-4E07-B650-DC9A63C07F61@fredemmott.co.uk> References: <56B233C0.10301@mprelu.de> <216F291E-F174-4E07-B650-DC9A63C07F61@fredemmott.co.uk> Date: Wed, 3 Feb 2016 17:29:53 -0500 X-Google-Sender-Auth: j9M4VjMg2J400WjR0ilXFuiDfFA Message-ID: To: Fred Emmott Cc: Sara Golemon , Matt Prelude , PHP internals Content-Type: multipart/alternative; boundary=94eb2c0b752e364491052ae528b7 Subject: Re: [PHP-DEV] [RFC] Add PHP_ENGINE Constant From: davey@php.net (Davey Shafik) --94eb2c0b752e364491052ae528b7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Currently, HippyVM doesn't even _have_ a version constant. Because it's trying to pretend to be PHP. Having a "YOU MUST FILL THESE CONSTANTS WITH YOUR OWN RUNTIMES DATA" in the spec is intended to help that situation. Right now, there's no way to tell what version of HippyVM you're running on, and to even check that you're using Hippy you need to check for E_HIPPY_WARN. We have a chance to standardize, and "mandate" that the information is exposed explicitly, and done so consistently. On Wed, Feb 3, 2016 at 5:14 PM, Fred Emmott wrote: > > On Feb 3, 2016, at 2:00 PM, Davey Shafik wrote: > > On Wednesday, February 3, 2016, Sara Golemon wrote: > > Unfortunately Sara, the types of things you generally have to work around > are minor things, like differences in DOM, or the inability to json_encod= e > DateTimeImmuteable > > > > It seems like the main thing this RFC would change is that you could > easily do =E2=80=9Cif ($engine !=3D=3D =E2=80=98php=E2=80=99)=E2=80=9D - = but for almost all the examples I can > think of, and yours, what=E2=80=99s actually needed is if "($engine =3D= =3D=3D > =E2=80=98specific_engine_that_needs_a_workaround=E2=80=99)=E2=80=9D, so I= don=E2=80=99t see a benefit over > using HHVM_VERSION or similar. > > The one exception I can think of is if someone=E2=80=99s reimplementing p= hpinfo() > or similar. > > Regards, > - Fred > --94eb2c0b752e364491052ae528b7--