We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Debian 8.1 phalcon 2.10 cli phalcon.so not loading

Hello, I cannot load phalcon on cli.

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/phalcon.so' - /usr/lib/php5/20131226/phalcon.so: undefined symbol: php_pdo_get_dbh_ce in Unknown on line 0

I move that phalcon.ini to 50-phalcon.ini

not working. update server and rebuild phalcon also not solve the problem.

On fpm it works perfect. However on cli it charshes.

My best regards

Phalcon.so should be loaded AFTER PDO, just put phalcon.so as last extension in php.ini imho.


Ok thanks.

It was mybad, when I setup the box earlier this month I put the 05-phalcon.ini in the conf.d of debian 8 php configuration dir and forgot it. Which means it start to load phalcon before the mysql pdo. And I put normal 30-phalcon.ini on the fpm config so that confuses me.

My best regards.

note - you should upgrade Jessie to 8.4 release in order to prevent security exploits.