pecl-compat
pecl-compat copied to clipboard
Some ideas for pecl-compat
I said many months ago on the PHP-DEV mailing list that I would look at using pecl-compat with my PECL extension. Unfortunately, I only ended up using a couple of minor ideas from your code. The basic takeaway that I got from this repo was that those who want both PHP 5 and PHP 7 support in a single code base should bury all differences between PHP 5 and PHP 7 by (ab)using macros.
Take a look at PECL sync 1.1.0 if you want to see what all I did. Specifically, look for the PORTABLE_... defines and typedefs. Maybe you'll find some of it useful for pecl-compat? It's MIT licensed code, so borrow all you care to.