ID: 48614 User updated by: kaspernj at gmail dot com -Summary: Crash when loading "pdo_sqlite3.so" Reported By: kaspernj at gmail dot com -Status: Feedback +Status: Open Bug Type: PDO related Operating System: Ubuntu Jaunty PHP Version: 5.3.0RC4 New Comment:
Thank you for responding. I used the following configure-line: ./configure --with-mysql=shared --with-gd=shared --with-pgsql=shared --enable-pcntl=shared --with-gettext=shared --with-mysqli=shared --with-imap=shared --with-mcrypt=shared --with-kerberos --with-imap-ssl --with-sqlite=shared --enable-sockets=shared --with-pdo-mysql=shared --with-pdo-sqlite=shared --enable-ftp=shared --enable-pdo=shared --with-pdo-pgsql=shared --enable-sockets=shared --enable-cli --disable-cgi --prefix=/opt/php53 --with-ldap=shared --with-pear=shared --disable-debug --with-bz2=shared --with-iconv=shared --with-regex=shared --enable-xml=shared --enable-dom=shared --with-xmlrpc=shared --with-mhash=shared --with-unixODBC=shared,/usr --enable-mbstring=shared --enable-xmlreader=shared --with-sqlite3=shared Previous Comments: ------------------------------------------------------------------------ [2009-06-20 12:20:20] paj...@php.net Which configure line did you use? ------------------------------------------------------------------------ [2009-06-20 09:58:11] kaspernj at gmail dot com Description: ------------ After succesfully compiling PHP 5.3 RC4 with PDO and PDO-SQLite, I ran a test-script to test all the shared extensions. When trying to load the PDO-SQLite extension, I get the following error: Warning: dl(): Unable to load dynamic library '.../pdo_sqlite.so' - .../pdo_sqlite.so: undefined symbol: sqlite3_libversion in ../test.php on line 5 Everything was compiled as shared extensions and loaded through a CLI script with dl(). Reproduce code: --------------- #!/opt/php53/bin/php <?php dl("gd.so"); dl("pdo.so"); dl("pdo_sqlite.so"); echo("Hejsa\n"); ?> Expected result: ---------------- Hejsa Actual result: -------------- Warning: dl(): Unable to load dynamic library '.../pdo_sqlite.so' - .../pdo_sqlite.so: undefined symbol: sqlite3_libversion in ../test.php on line 5 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48614&edit=1