Topic: What is the best way to learn to write PHP Extensions?

As a PHP Developer, it's always frustrating to find an extension which just is not compatible with your current version of PHP. I have run into this problem a few times now, initially with the Cassandra extension which Datastax developed, but abandoned in favor of other languages, and more recently the php-judy extension.

I know that development of the extensions is in C / C++ (Something I've always been curious to learn more, but just never got around to), however, are there any guides / documentation regarding how to approach building a PHP extension? Or even updating an existing one to a more recent version of PHP?

Re: What is the best way to learn to write PHP Extensions?

Most upgradings information are in UPGRADING.INTERNAL file

Sorry, I not aware of any good documentation about writing PHP extension
Need to learn reading code of existing extension.

Desktop: Fedora 33 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 34 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: What is the best way to learn to write PHP Extensions?

Ah, I understand.
It's less following a guide or predefined structure, and more to do with just learn by doing.

Thank you very much for your quick response.