[Bug 663274] New: Fatal error: Class 'PDO' not found
https://bugzilla.novell.com/show_bug.cgi?id=663274 https://bugzilla.novell.com/show_bug.cgi?id=663274#c0 Summary: Fatal error: Class 'PDO' not found Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: aaatoja@o2.pl QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; pl-PL; rv:1.9.2.13) Gecko/20101203 SUSE/3.6.13-3.1 Firefox/3.6.13 Fatal error: Class 'PDO' not found. Occurs after upgrading PHP to 5.3.5-48.1, repository http://download.opensuse.org/repositories/server:/php/openSUSE_11.3/ linux:/etc/php5/conf.d # ls -l |grep pdo -rw-r--r-- 1 root root 73 01-09 03:20 pdo.ini -rw-r--r-- 1 root root 85 01-09 03:20 pdo_mysql.ini -rw-r--r-- 1 root root 85 01-09 03:20 pdo_pgsql.ini -rw-r--r-- 1 root root 87 01-09 03:20 pdo_sqlite.ini linux:/etc/php5/conf.d # cat pdo.ini ; comment out next line to disable pdo extension in php extension=pdo.so linux:/etc/php5/conf.d # ls -l /usr/lib64/php5/extensions/ | grep pdo -rw-r--r-- 1 root root 27608 01-09 03:21 pdo_mysql.so -rw-r--r-- 1 root root 40440 01-09 03:21 pdo_pgsql.so -rw-r--r-- 1 root root 114128 01-09 03:21 pdo.so -rw-r--r-- 1 root root 27896 01-09 03:21 pdo_sqlite.so Reproducible: Always Steps to Reproduce: 1. Upgrade PHP 2. Try to use PDO extension Actual Results: Fatal error: Class 'PDO' not found -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=663274
https://bugzilla.novell.com/show_bug.cgi?id=663274#c
wei wang
https://bugzilla.novell.com/show_bug.cgi?id=663274
https://bugzilla.novell.com/show_bug.cgi?id=663274#c1
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=663274
https://bugzilla.novell.com/show_bug.cgi?id=663274#c2
Cristian Rodríguez
https://bugzilla.novell.com/show_bug.cgi?id=663274
https://bugzilla.novell.com/show_bug.cgi?id=663274#c3
Phillip R Strauss
https://bugzilla.novell.com/show_bug.cgi?id=663274
https://bugzilla.novell.com/show_bug.cgi?id=663274#c4
--- Comment #4 from Marek Ruszkowski
https://bugzilla.novell.com/show_bug.cgi?id=663274
https://bugzilla.novell.com/show_bug.cgi?id=663274#c5
--- Comment #5 from Cristian Rodríguez
Yes, it's working but, forgot to say, in my case I does nothing to mysql. I'm working mostly with pdo_pgsql adapter.
strace -f php5 php-pdo.php5 2>&1 | grep pdo.so open("/usr/lib/php5/extensions/pdo.so", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, "PHP Warning: PHP Startup: Unabl"..., 206PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/extensions/pdo.so' - /usr/lib/php5/extensions/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
Works for me, hrmm.. you opened this report for x86_64 arch..why your PHP is looking for /usr/lib/php5/extensions/pdo.so ? that's wrong, you maybe got 32 bit php installed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=663274
https://bugzilla.novell.com/show_bug.cgi?id=663274#c6
--- Comment #6 from Marek Ruszkowski
https://bugzilla.novell.com/show_bug.cgi?id=663274
https://bugzilla.novell.com/show_bug.cgi?id=663274#c7
--- Comment #7 from Cristian Rodríguez
# rpm -qa | grep php5 php5-5.3.5-50.1.x86_64 php5-fileinfo-5.3.5-50.1.x86_64 php5-tokenizer-5.3.5-50.1.x86_64 php5-curl-5.3.5-50.1.x86_64 php5-pspell-5.3.5-50.1.x86_64 php5-xmlreader-5.3.5-50.1.x86_64 php5-openssl-5.3.5-50.1.x86_64 php5-pgsql-5.3.5-50.1.x86_64 php5-tidy-5.3.5-50.1.x86_64 php5-intl-5.3.5-50.1.x86_64 php5-ctype-5.3.5-50.1.x86_64 php5-posix-5.3.5-50.1.x86_64 php5-gettext-5.3.5-50.1.x86_64 php5-sqlite-5.3.5-50.1.x86_64 php5-xmlwriter-5.3.5-50.1.x86_64 php5-mbstring-5.3.5-50.1.x86_64 php5-dom-5.3.5-50.1.x86_64 php5-mysql-5.3.5-50.1.x86_64 php5-suhosin-5.3.5-50.1.x86_64 php5-iconv-5.3.5-50.1.x86_64 php5-xsl-5.3.5-50.1.x86_64 php5-pdo-5.3.5-50.1.x86_64 php5-phar-5.3.5-50.1.x86_64 php5-json-5.3.5-50.1.x86_64 php5-hash-5.3.5-50.1.x86_64 php5-xcache-1.3.0-1.2.x86_64 php5-zip-5.3.5-50.1.x86_64 php5-fastcgi-5.3.5-50.1.x86_64
# strace -f php5 php-pdo.php5 2>&1 | grep pdo.so open("/usr/lib/php5/extensions/pdo.so", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, "PHP Warning: PHP Startup: Unabl"..., 206PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/extensions/pdo.so' - /usr/lib/php5/extensions/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
That does not make any sense, I have the same packages installed and works fine. Did you modified the extension_dir directory peraphs ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=663274
https://bugzilla.novell.com/show_bug.cgi?id=663274#c8
--- Comment #8 from Marek Ruszkowski
https://bugzilla.novell.com/show_bug.cgi?id=663274
https://bugzilla.novell.com/show_bug.cgi?id=663274#c9
--- Comment #9 from Phillip R Strauss
participants (1)
-
bugzilla_noreply@novell.com