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/

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to