Re: PHP7 extension documentation
| From: | Benjamin Eberlei | Date: | Thu, 10 Mar 2016 11:52:40 +0000 |
| Subject: | Re: PHP7 extension documentation | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-13618@lists.php.net to get a copy of this message | ||
On Thu, Mar 10, 2016 at 12:03 PM, Ruslan Osmanov <rrosmanov@gmail.com>
wrote:
> Hi,
>
> AFAIK, there is only UPGRADING.INTERNALS file at the root of php-src.
> Also, almost the same thing published online:
> https://wiki.php.net/phpng-upgrading
>
> On Thu, 10 Mar 2016 10:35:40 +0100
> Giuseppe Chiesa <mail@giuseppechiesa.it> wrote:
>
> > Hi all,
> >
> > I'm one of the maintainers of BLENC PECL extension. I would like to
> > port that extension to PHP7, and improve it a bit, making it
> > compatible with other opcode caching extensions and adding some new
> > features. The problem is that I cannot find any up to date
> > documentation about Zend internals API and I don't have much time now
> > to dig into the Zend code and try to figure out how the APIs should
> > work.
> >
> > Is that possible that the latest good resource for implementing PECL
> > extension is the "Extending and Embedding PHP (Developer's Library)"
> > (from 2006)?
> > It's 10 years ago.
>
There is also http://www.phpinternalsbook.com/ which
is written for PHP 5
but more recent than Saras book.
Regarding PHP 7, my best help was the various branches and diffs for other
extensions that added PHP 7 support to the extensions. There are tons of
good ideas about abstractions, for example introducing zend_string for PHP
5 for compatibility and others. But you have to poke around Github to find
ideas there.
greetings
Benjamin
> >
> > I'm a bit disappointed for this lack of documentation and that also
> > stops me from trying to improve existing code.
> >
> > If you have some new resource, related to the latest PHP and Zend
> > Internals please share it here.
> >
> > Thank you,
> > Giuseppe Chiesa
> >
> >
>
>
> --
> Ruslan Osmanov
>
> --
> PECL development discussion Mailing List (http://pecl.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>