Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91070 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57856 invoked from network); 3 Feb 2016 22:14:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2016 22:14:16 -0000 Authentication-Results: pb1.pair.com header.from=fred@fredemmott.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=fred@fredemmott.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fredemmott.co.uk from 209.85.160.177 cause and error) X-PHP-List-Original-Sender: fred@fredemmott.co.uk X-Host-Fingerprint: 209.85.160.177 mail-yk0-f177.google.com Received: from [209.85.160.177] ([209.85.160.177:34652] helo=mail-yk0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/53-34960-7BB72B65 for ; Wed, 03 Feb 2016 17:14:16 -0500 Received: by mail-yk0-f177.google.com with SMTP id u9so31921697ykd.1 for ; Wed, 03 Feb 2016 14:14:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fredemmott-co-uk.20150623.gappssmtp.com; s=20150623; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=CMlNGvD8jxOHo1ixp2opIL57kmUl34IVVqkxDE0B6MQ=; b=R8x52mmhotY1AsuDeGQ6F8E4y5QRmhG8Y7kDe9UB+kpCgnhyrjLZ695kjMcvm5FvmV rT4Mz4pHqe+bfwu2e2rCqN2N/WCuMAAW5riO+qQ8Vs6TQT7G36Y2vt+48muagx1FW8mR faBFzC/Yirv7E7oT99iJ0wcodoMOyJI3BMAWal4TKCtb2pPVP+E18jlGwLcPyD3tFKbl jrNh8A/b94C6TMzpWN3ijTBDPAoEU2KrhgyM6GRfOCsEveAnfPdY9lER3UwyW/Zxl6Es 9AVOCgsVoV/OrYPxTzTuJwixcZYFGxCUzp+AdLosdOcDJOdbelJzTz/dG4ZQh8VYwm+e jZKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=CMlNGvD8jxOHo1ixp2opIL57kmUl34IVVqkxDE0B6MQ=; b=Cki9aK6ko0k6/yHTdzXID4Na0s2HSymTfOs6l5EM0q/BvSbf48rkrxnvgKwfDDpln9 NsgViE8bqHNfRf/OFv1xpEOrXRNrz1xLGbic3w0HQsrlmLDOdqL6/Li6AcdHFSFI37Nv d+ADbzj60SCkeBYzeHgi6921Btiwq4WrlPSdFcC7rQz3YVpXcNsWV0X8+ym4GEi2Kq9C 9XK9gkduHz1MR7yxRJ3tdsmuHtrrWZ2Tjfgx42ZwuCEjJT7hgt8TTpcaeicLBf0/1PZl 6NGHONa6u5nBXnTGCK+W1DglJ19aPHvqSNoT5W7TzRsN5UynRlT4LbAH2DBOSVVYvab+ 2D1A== X-Gm-Message-State: AG10YOSs7qqdveZ76uQ1gBH3oRMyFB3xXZJrUCqrLFdZkPWEbEnDH68GLdE75rhoYK//0w== X-Received: by 10.13.218.198 with SMTP id c189mr2394504ywe.165.1454537652128; Wed, 03 Feb 2016 14:14:12 -0800 (PST) Received: from ?IPv6:2620:10d:c0a3:10fb:bae8:56ff:fe43:db38? ([2620:10d:c091:200::b:137b]) by smtp.gmail.com with ESMTPSA id t198sm4776885ywe.36.2016.02.03.14.14.11 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Feb 2016 14:14:11 -0800 (PST) Content-Type: multipart/alternative; boundary="Apple-Mail=_5F8D2C29-AF03-48D1-959C-ED60C041C4A2" Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) In-Reply-To: Date: Wed, 3 Feb 2016 17:14:09 -0500 Cc: Sara Golemon , Matt Prelude , PHP internals Message-ID: <216F291E-F174-4E07-B650-DC9A63C07F61@fredemmott.co.uk> References: <56B233C0.10301@mprelu.de> To: Davey Shafik X-Mailer: Apple Mail (2.3112) Subject: Re: [PHP-DEV] [RFC] Add PHP_ENGINE Constant From: fred@fredemmott.co.uk (Fred Emmott) --Apple-Mail=_5F8D2C29-AF03-48D1-959C-ED60C041C4A2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Feb 3, 2016, at 2:00 PM, Davey Shafik wrote: >=20 > On Wednesday, February 3, 2016, Sara Golemon > wrote: >=20 > Unfortunately Sara, the types of things you generally have to work = around > are minor things, like differences in DOM, or the inability to = json_encode > 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 = phpinfo() or similar. Regards, - Fred= --Apple-Mail=_5F8D2C29-AF03-48D1-959C-ED60C041C4A2--