We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Guide to build ext with zephir (with existing header)

Hi, i just read that mariadb support for nonblocking client. there is a nodejs implementation called mariasql, i am interested to create the php client for mariadb nonblcking client. and of course i want to build it with zephir.

any guide to create it?

The Zephir tutorial is here. The instructions under "Extension Skeleton" are incorrect; The init command does not create a config.json by default. You must create it, but all it needs to contain is:

{
    "namespace": "YourNamespace"
}


16.3k

the point is. how can i include external header, and use the function inside zephir, eg i want to include mysql.h and how to use the function of mysql.h?