Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89171 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33009 invoked from network); 11 Nov 2015 05:41:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2015 05:41:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=thruska@cubiclesoft.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=thruska@cubiclesoft.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain cubiclesoft.com designates 74.208.222.236 as permitted sender) X-PHP-List-Original-Sender: thruska@cubiclesoft.com X-Host-Fingerprint: 74.208.222.236 u17593298.onlinehome-server.com Received: from [74.208.222.236] ([74.208.222.236:44416] helo=u17593298.onlinehome-server.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/EE-21426-215D2465 for ; Wed, 11 Nov 2015 00:41:38 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: thruska@cubiclesoft.com) with ESMTPSA id 07802202B9 To: =?UTF-8?Q?Fran=c3=a7ois_Laupretre?= , PHP internals References: <564204E4.2050108@php.net> Message-ID: <5642D501.7080701@cubiclesoft.com> Date: Tue, 10 Nov 2015 22:41:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 In-Reply-To: <564204E4.2050108@php.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Compatibility library for extensions From: thruska@cubiclesoft.com (Thomas Hruska) On 11/10/2015 7:53 AM, François Laupretre wrote: > Hi, > > Some of you may be interested by a project I just released at > https://github.com/flaupretre/pecl-compat. > > This is a compatibility library. The objective is to minimize the pain > of making a PHP extension compatible with both PHP 5 and 7, while > allowing to keep a single code tree. > > Of course, it does not bring solutions to every cases you may encounter > and some 'ifdef' will still remain, but it solves a lot of issues, > especially related to changes in zend_string and zend_hash, which were > the most annoying in my case. > > For an example of an extension using this compatibility layer, look at > https://github.com/flaupretre/pecl-pcs. > > Feel free to comment, test, and suggest improvements. > > Regards > > François Oooh. Interesting. Saving for later when I get around to updating my PECL extension for PHP 7 (probably Q1 2016). -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful. http://cubiclesoft.com/