From:             starcraftmazter at gmail dot com
Operating system: CentOS 5.3 64bit
PHP version:      6SVN-2009-12-09 (snap)
PHP Bug Type:     PDO related
Bug description:  pdo_sqlite.so: undefined symbol: sqlite3_libversion

Description:
------------
This error occurs on (currently) the latest snapshot, when loading the
extension. It seems to be related to PDO/Sqlite.

Compile String for reference:
'./configure' '--prefix=/usr/local'
'--with-apxs2=/usr/local/apache/bin/apxs' '--enable-bcmath'
'--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf'
'--enable-libxml' '--enable-mbstring' '--enable-soap' '--enable-sockets'
'--enable-zip' '--with-bz2' '--with-curl=/opt/curlssl/'
'--with-curlwrappers' '--with-freetype-dir=/usr' '--with-gd'
'--with-gettext' '--with-imap=/opt/php_with_imap_client/'
'--with-imap-ssl=/usr' '--with-kerberos' '--with-libdir=lib64'
'--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/'
'--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/'
'--with-openssl-dir=/usr' '--with-xsl=/opt/xslt/' '--with-zlib'
'--with-zlib-dir=/usr' '--with-openssl=/usr' '--with-pic'
'--with-xpm-dir=/usr' '--with-jpeg-dir=/usr' '--with-png-dir=/usr'
'--with-mysql' '--with-mysqli' '--with-pgsql' '--with-sqlite=shared'
'--enable-pdo=shared' '--with-pdo-sqlite=shared' '--with-pdo-mysql=shared'
'--with-pdo-pgsql=shared' '--with-config-file-path=/opt/php/ini/6'

Shared PDO extensions are loaded in the right order:

extension=pdo.so
extension=pdo_sqlite.so
extension=pdo_mysql.so
extension=pdo_pgsql.so


This same setup works well on php 5.3 and 5.2 lines.


This may be related to this bug: http://bugs.php.net/bug.php?id=48614
Doing what  i dot galic suggested, results in the following error upon
./configure though;
checking for sqlite_open in -lsqlite... no
I have my sqlite installed in /usr(/lib)

Reproduce code:
---------------
<?php

echo phpinfo();

?>

Expected result:
----------------
No error

Actual result:
--------------
/opt/php/6/bin/php: symbol lookup error:
/opt/php/6/lib/php/extensions/no-debug-non-zts-20070729/pdo_sqlite.so:
undefined symbol: sqlite3_libversion

-- 
Edit bug report at http://bugs.php.net/?id=50420&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50420&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50420&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50420&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50420&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50420&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50420&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50420&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50420&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50420&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50420&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50420&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50420&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50420&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50420&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50420&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50420&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50420&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50420&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50420&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50420&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50420&r=mysqlcfg

Reply via email to