Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87053 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7666 invoked from network); 6 Jul 2015 16:23:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jul 2015 16:23:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; 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:33394] helo=mail-qg0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3D/9E-21549-A9BAA955 for ; Mon, 06 Jul 2015 12:23:54 -0400 Received: by qgef3 with SMTP id f3so21451343qge.0 for ; Mon, 06 Jul 2015 09:23:52 -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=RWDwwhBpmSLHNN6nl3q4YInBryqjl8oeicCHl8wJNbI=; b=Siof3HmBwUIjNxXRwGJd2BvaOW+wFlvNfChMqP93hjGFv+97OUs0qPTTw1ikHt0BGj snL1StUWmbVliCehvh4TNH/h9CKqORmmtVunmnA/y1n1emGSJGASPrcuJh3Knt3rVdWZ bgxhpay+FwF+7UzwElml97RV/ZYcPXbkYIzmuqiaOuo/g7mn/88H1p2MKkrygf295tRb POqyFpBMk+k2avIs8cE6iGZdQWFgsPBy3c7iSys+ezgP3x5yStqjDsU5uvu0Anr23MLQ /+/mfqtG6dr10Q7kte0NHXlKhck5CuZjriXcJEV1wZ80KOdXsRYv5qnXlHpc4l42mNxv JYCQ== MIME-Version: 1.0 X-Received: by 10.55.23.195 with SMTP id 64mr95905392qkx.9.1436199832099; Mon, 06 Jul 2015 09:23:52 -0700 (PDT) Received: by 10.96.154.195 with HTTP; Mon, 6 Jul 2015 09:23:52 -0700 (PDT) Received: by 10.96.154.195 with HTTP; Mon, 6 Jul 2015 09:23:52 -0700 (PDT) In-Reply-To: References: <007801d0b805$5b9d3100$12d79300$@php.net> Date: Mon, 6 Jul 2015 23:23:52 +0700 Message-ID: To: francois@php.net Cc: PHP internals Content-Type: multipart/alternative; boundary=001a1147f1a2d1c961051a3754ab Subject: Re: [PHP-DEV] Migrating PECL extension : Advice needed From: pierre.php@gmail.com (Pierre Joye) --001a1147f1a2d1c961051a3754ab Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Jul 6, 2015 11:21 PM, "Pierre Joye" wrote: > > > On Jul 6, 2015 11:04 PM, "Fran=C3=A7ois Laupretre" wro= te: > > > > 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 thin= k > > I'll have to create a separate branch. > > > > As many of you probably had to make the same decision, can you tell me how > > you numbered your versions for the 2 parallel branches ? Use a differen= t > > major number ? minor number ? same version with different suffixes ? I forgot to mention that starting with suffices is not going to work well, not semver and this is a job for a dependency manager. Either using pickle, PECL or configure. > 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 > > --001a1147f1a2d1c961051a3754ab--