I forked the DataStax Cassandra driver when it stopped compiling on PHP 8 and most of its maintainers had already moved on. My first instinct was to write the new parts in C++. I built a Zend wrapper class, used RAII throughout, and put smart pointers around zval s—the whole modern setup.

Source: [Dev.to](https://dev.to/malusev998/why-i-use-c-instead-of-c-for-php-extensions-6g8)

Sponsored