PDO MariaDB without Falcon

Hi there,

I started using Zephir for a new project and I got stuk at this PDO error. Very annoying but hopefully you can help me out. To be clear; I don't use Falcon.

My class builds fine, but when adding my thecodingcompany.so file to php.ini I get the following error:

PHP Warning: PHP Startup: Unable to load dynamic library 'thecodingcompany.so' (tried: /usr/lib64/php/modules/thecodingcompany.so (/usr/lib64/php/modules/thecodingcompany.so: undefined symbol: php_pdo_get_dbh_ce), /usr/lib64/php/modules/thecodingcompany.so.so (/usr/lib64/php/modules/thecodingcompany.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

I am running PHP7.2.1 on CentOS 7.

So it seems PDO without Phalcon is not possible. I used native php: mysqli methods instead.

why double ".so" in /usr/lib64/php/modules/thecodingcompany.so.so ? Did you use "\" as in \PDO ?

undefined symbol: php_pdo_get_dbh_ce

You need to load PDO first before your extension. That should make it work.