Re: Annotated PHP 5->7 extension diff

From: Date: Sun, 08 Feb 2015 18:14:40 +0000
Subject: Re: Annotated PHP 5->7 extension diff
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-82157@lists.php.net to get a copy of this message
On Thu, Feb 5, 2015 at 10:41 PM, guilhermeblanco@gmail.com < guilhermeblanco@gmail.com> wrote: > > My biggest concern about all this breakage done for NG could somehow be > minimized by providing possible alternate implementations that could work > both backwards compatible and forwards compatible? > I just don't want to work on extensions I support that would never be > usable in earlier versions once finished the update. > > Hi, I have create a header that does it ( see https://github.com/bukka/phpc/blob/master/phpc.h ). There are still quite a few bits that need to be added and tidied up but it already suppors most cases that I will need in my extension. The header probably doesn't show much (and might look a bit scary ... :) ) so I have created a testing ext that uses it. You can see the result here: https://github.com/bukka/php-extest/blob/master/extest_compat.c As you can see there isn't a single ifdef and it compiles and works (test passes) for PHP 7 and 5 (tested on 5.6 but should be fine for 5.2+). It means that it won't require any changes in PECL. There isn't much documentation as yet because I'm still working on it. But I plan to add it later. Any comments or patches are welcome! Cheers Jakub

« previous php.internals (#82157) next »