Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91072 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60609 invoked from network); 3 Feb 2016 22:30:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2016 22:30:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=fred@fredemmott.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=fred@fredemmott.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fredemmott.co.uk from 209.85.161.181 cause and error) X-PHP-List-Original-Sender: fred@fredemmott.co.uk X-Host-Fingerprint: 209.85.161.181 mail-yw0-f181.google.com Received: from [209.85.161.181] ([209.85.161.181:33500] helo=mail-yw0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/D3-34960-68F72B65 for ; Wed, 03 Feb 2016 17:30:31 -0500 Received: by mail-yw0-f181.google.com with SMTP id z185so13917390ywf.0 for ; Wed, 03 Feb 2016 14:30:30 -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 :content-transfer-encoding:message-id:references:to; bh=1y579WAmP/8x01z7vMkaUZT5HwG1kV4Co/EvOOJFQBc=; b=Pe0W5oy3yvbfxg3gD3Xt1k4AtML6CIUyN/PxDkgfHWvXNGl4dRHYoc5ewzIpMfc3Hx QA8ngtO9yTkt2vTKz3R30Vha4vcFZs+x+J4l9851dSpMnATeqQemey6yKyd+S4zgFAHJ Q/mDDJRcyj6F4yGlvEpqzaHzBKd9GXQzVTv0IP1J/GMExanltU7hcZiiLNshEByYcLV8 qsIG2ZsfuM8rU9i6yXeDgVFW/7h3iNL7Pf4W1D7Vy5LJihBPmY2SFcUv1YZ28hJLINQi Q769nDcH5oKWCExcNrjqWVXKudY7Mq2W0UlNZCRayJAdwFD9I65npCac6gYZrbDI1+WB Op1w== 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:content-transfer-encoding:message-id:references :to; bh=1y579WAmP/8x01z7vMkaUZT5HwG1kV4Co/EvOOJFQBc=; b=Lpwxe72cDd5LkrB/rcJPLd+2noWalOADJJXCcSNVDL5sqfjezG9j9XTMlwAmcbHw0t YwmqxoUcXc6Xeh/pdlR95vx0qFlL7I6CRqEQ3201zXpYYciRuP4e5J3ZpW6gstfP53Kx aGMptNBo5MhlJWusYvDNz+8nGASQdkXUIntdI83i8HLAzBLn0UjU2xzmblOksLDDDXuk 3J0EP4t8RwTghST+UsBLX10b8SUkxCT4U4R+4+T3LvwYIbPI6AHXva778tfnAUg6oSFW fEHWPUucNJbb0tasWe9752Rmfdpgokrm6wccLXP+3SRuBwxp/qD1qlNbAAPT9VoQwaBo M65Q== X-Gm-Message-State: AG10YOTD5he8gUgwa8Gil94WIlu1nfsF0599dqXjXTkBPtTUiv7X3A151D57AzudeP7Z6Q== X-Received: by 10.13.233.66 with SMTP id s63mr2193761ywe.36.1454538628456; Wed, 03 Feb 2016 14:30:28 -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 d141sm4847842ywe.4.2016.02.03.14.30.27 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Feb 2016 14:30:27 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) In-Reply-To: Date: Wed, 3 Feb 2016 17:30:26 -0500 Cc: "internals@lists.php.net" , Sara Golemon Content-Transfer-Encoding: quoted-printable Message-ID: <187E338B-D6C1-4E75-BFF0-2650A9777671@fredemmott.co.uk> References: 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) > On Feb 3, 2016, at 4:03 AM, Davey Shafik wrote: >=20 > Hi all, >=20 > 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. >=20 > 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 =E2=80=9Creal PHP=E2=80=9D and = =E2=80=9Cnot real PHP=E2=80=9D would be useful to you? It sounds like = you are working around HHVM bugs, so checking =E2=80=98am I on HHVM?=E2=80= =99 is the correct thing to do - =E2=80=98Am I on something that is not = PHP?=E2=80=99 is not, as other engines may not have the same bugs. Regards, - Fred=