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

1.3.0/1.3.1: undefined symbol: php_pdo_get_dbh_ce

Compiling 1.3.0 or 1.3.1 results in this error message when loading php -v. As a result, phalcon is not available in PHP. It works flawless with 1.2.6.

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

System: Ubuntu 12.04 LTS 32bit in a Vagrant VM.

Please fix:

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



98.9k
Accepted
answer

To fix this PDO extension must be loaded before load Phalcon

Thank you, @Phalcon.

I solved it by removing my manually added extension=phalcon.so from the php.ini's and added a phalcon.ini to mods-available in /etc/php5 and enabled it afterwards with php5-enmod phalcon. It works just fine now.