Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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: phppdogetdbhce in Unknown on line 0



84.5k
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.