On Feb 7, 2015 5:57 PM, "François Laupretre" <franc...@tekwire.net> wrote: > > > De : Pierre Joye [mailto:pierre....@gmail.com] > > Not sure it will help. It is really about showing cases for deref, > > duplicate, convert, iterate, etc. The zpp, return values or > > functions/class/methods declaration are really the easy part here. > > I understand. I thought it would be a nice way to enhance the abstraction layer php-ext-gen provides, as I am missing use cases. Generating glue code is just one of the project objectives. The second one is to provide an abstraction layer allowing to duplicate as few code as possible when migrating an extension to PHP 7 (HHVM is also in scope). > > I already fully abstract resources, so that user code doesn't have to deal, for instance, with zend_resource structs. I also provide an API for persistent resources, which Zend does not provide. That's just an example. It can be done for many other areas. > > But, if you don't want to participate, I'll integrate that myself using your examples.
It is more a time issue and a non believer in too much generation of codes. > Just a question : for your demo extension, would you write two branches or a single one with #ifdef directives ? I ported one (not oss sadly) and I end up with separate files. One for 5.x, 7.x and common helpers. > Cheers > > François > >