Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79122 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47533 invoked from network); 24 Nov 2014 12:32:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Nov 2014 12:32:07 -0000 Authentication-Results: pb1.pair.com header.from=dragoonis@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dragoonis@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.177 as permitted sender) X-PHP-List-Original-Sender: dragoonis@gmail.com X-Host-Fingerprint: 209.85.216.177 mail-qc0-f177.google.com Received: from [209.85.216.177] ([209.85.216.177:36098] helo=mail-qc0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/E1-33396-64523745 for ; Mon, 24 Nov 2014 07:32:07 -0500 Received: by mail-qc0-f177.google.com with SMTP id x3so6663062qcv.36 for ; Mon, 24 Nov 2014 04:32:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=weRlkO9fLCJBdpth+6EiNFszcbl/oG2DeuiJsIu1TKs=; b=Gz+omxAvsIbcMHhy0x9Rvj1+RRs55rmTROKHQ31aBm2Fg5ZUU54Drwby/i/8frbsj1 HR/p9D4xPaszFC3Fbwyn8vDcST4lBphHtChkEoIxbUZTiDUQB9P8XtGFzspp7RXtrvtr y2LMoR4vIOt4kA9BrtBcNUM5wURIyhh2lkzaAFCRG6FAHy1fPgXLsd0yeeGAdV+TOkZS Gjto/M14QUdGF5qUrGLLp92Yi0sTeA6AOT1BKEpnEo59Um3PwKh9jD0yz6Hj8QcEFnJv uf9KkXO8TROOGjopA9Sxczb5D31I7QBiem8/1EljitpL6RT/u3BrsyXm5DznC+8oCYim Knag== MIME-Version: 1.0 X-Received: by 10.224.46.5 with SMTP id h5mr29350134qaf.26.1416832324057; Mon, 24 Nov 2014 04:32:04 -0800 (PST) Received: by 10.229.179.132 with HTTP; Mon, 24 Nov 2014 04:32:03 -0800 (PST) Received: by 10.229.179.132 with HTTP; Mon, 24 Nov 2014 04:32:03 -0800 (PST) In-Reply-To: References: <47A69FC3-2DAF-492E-B780-F203211E531F@ajf.me> Date: Mon, 24 Nov 2014 12:32:03 +0000 Message-ID: To: Nikita Popov Cc: PHP Internals List , Andrea Faulds Content-Type: multipart/alternative; boundary=001a11c360f861c0cf050899fb59 Subject: Re: [PHP-DEV] Zend Engine 3 From: dragoonis@gmail.com (Paul Dragoonis) --001a11c360f861c0cf050899fb59 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 24 Nov 2014 12:18, "Nikita Popov" wrote: > > On Mon, Nov 24, 2014 at 1:10 AM, Andrea Faulds wrote: > > > Good evening, > > > > Since phpng, int64, and perhaps other future changes in PHP 7 are a pretty > > big change, I think we ought to bump the major version number of the Zend > > Engine, from Zend Engine 2 to Zend Engine 3. > > > > I have a pull request open which would do this, although it needs updating > > to correct extensions checking for ZEND_ENGINE_2: > > https://github.com/php/php-src/pull/829 > > > > Are there any objections to the idea? I realise work on the engine isn= =E2=80=99t > > done, but that doesn=E2=80=99t mean we can=E2=80=99t name the new versi= on. After all, we=E2=80=99ve > > named PHP 7, and it doesn=E2=80=99t exist yet, either. > > > > Thoughts? > > > > Why do we need this define at all? Imho extensions should be checking > against the API version, rather than a ZEND_ENGINE_N constant. This is more > precise (it's not like extension code stays the same between minor > versions), but the ZEND_ENGINE_N constant also has the problem that it > targets only 5.x, even though the code it guards would usually be relevan= t > to 7.x as well. Paying to way for now asking someone to know the specific individual API versions and their features, the convenience of saying "I know ZE 3 supports this and ZE2 does not" would be a worth while addition. Especially for newcomers to ext dev. > > Nikita --001a11c360f861c0cf050899fb59--