On Wed, Nov 19, 2014 at 12:50 PM, Michael Wallner <m...@php.net> wrote:
> > I don't think this is a viable option. PHP/Zend internals dialect is > complicated enough even without another (compat) layer. Changes in PHP7 > are just to many to make the code still look sane with all the #ifdefs, > and often enough, it's not only #ifdef'ing 1-3 lines but four out of > five code blocks. > > That's why there is the compat header that takes care of all ifdefs. If you look to https://github.com/bukka/php-extest/blob/master/extest_compat.c, you won't see a single ifdef. This is just a start and it will be considerably extended for objects, resources, streams and other stuff that I need in my extensions. As I said some people might not like it as it adds additional API. It won't be also convinient for extensions using core stuff like opcode handlers. Forcing all PECL devs to use extra branch is not the right solution IMHO. The best solution would be give devs choice. For example if you don't have 'phpng' branch then try to compile master. Cheers Jakub