Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87052 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6188 invoked from network); 6 Jul 2015 16:21:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jul 2015 16:21:54 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.47 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.192.47 mail-qg0-f47.google.com Received: from [209.85.192.47] ([209.85.192.47:35069] helo=mail-qg0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/4E-21549-12BAA955 for ; Mon, 06 Jul 2015 12:21:53 -0400 Received: by qget71 with SMTP id t71so71404628qge.2 for ; Mon, 06 Jul 2015 09:21:50 -0700 (PDT) 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=jpgD2DD0An/iVeOq/bllTYHGSBjub3vdfRkXRs/jWRE=; b=s1JcDj4V4aZtuRjoWo3HX+ExI5cBTAsybRbg9ijpBRwv/ap2eDtF0wpNep4wnH2MXc JqrLAqDFSgdSxEyizp6FBKSqkCeOvGpVyvbFQS7D7mCZvOcZNwB9ea+lVXYzAnpHruEU FfY1KfA2dNGWMLIBRskpdC5g1H4Ax9ORZUKWLzZKHCHrJa9lLgTKLlxlg+sLWmiLwzT5 0SshNy6m0DGjLCVe88iddTOgLtMT1qzhEV+I1PeGgXLGuXTwMRYbNVQXG2p69MUGUfmw pIAgq+zM9e1Iq67S2lFx8aaSBbrhEJIfwO157IEh8pwJ6cSIR06Y4uVE6Vk5YmSS0gen EkNw== MIME-Version: 1.0 X-Received: by 10.55.23.195 with SMTP id 64mr95890738qkx.9.1436199710595; Mon, 06 Jul 2015 09:21:50 -0700 (PDT) Received: by 10.96.154.195 with HTTP; Mon, 6 Jul 2015 09:21:50 -0700 (PDT) Received: by 10.96.154.195 with HTTP; Mon, 6 Jul 2015 09:21:50 -0700 (PDT) In-Reply-To: <007801d0b805$5b9d3100$12d79300$@php.net> References: <007801d0b805$5b9d3100$12d79300$@php.net> Date: Mon, 6 Jul 2015 23:21:50 +0700 Message-ID: To: francois@php.net Cc: PHP internals Content-Type: multipart/alternative; boundary=001a1147f1a2939fa5051a374db4 Subject: Re: [PHP-DEV] Migrating PECL extension : Advice needed From: pierre.php@gmail.com (Pierre Joye) --001a1147f1a2939fa5051a374db4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Jul 6, 2015 11:04 PM, "Fran=C3=A7ois Laupretre" wrote= : > > Hi everybody, > > I'm currently adapting the 'PHK' PECL extension for PHP 7. I initially > wanted to keep a single branch for PHP 5 and PHP 7, and enclose differences > in macros and #ifdef blocks, starting with a backport of zend_string. > Unfortunately, PHK interacts a lot with the PHP core and, as changes > accumulate, I see my code become less and less readable. So, I now think > I'll have to create a separate branch. > > As many of you probably had to make the same decision, can you tell me ho= w > you numbered your versions for the 2 parallel branches ? Use a different > major number ? minor number ? same version with different suffixes ? Different branches is painful from a release point of view and development. Except if the exposed APIs are very different it makes little sense to do it. Same for using different versions for 5.x and 7.x. I would recommend to use multiple files when the code is getting unreadable= . > Thanks and regards > > Fran=C3=A7ois > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --001a1147f1a2939fa5051a374db4--