SQLite present, but class SQLiteDatabase not available

SQLite present, but class SQLiteDatabase not available

am 24.09.2007 12:51:04 von meer

Hello

I have quite strange problem. I compiled PHP with PDO (shared), SQLite
(shared), pdo_sqlite and pdo_mysql:

--enable-pdo=shared
--with-pdo-mysql=shared,/usr
--with-sqlite=shared
--with-pdo-sqlite=shared

Compiling process was all OK.

Then, I added following lines to php.ini:

extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so

(In that order). I restarted the webserver (Apache2).

Then, I issued a command: php -m, which told me that I have PDO and
SQLite extensions loaded without errors. I also checked it via
phpinfo() and all I found all the info about PDO/SQLite.

Procedural functions like sqlite_open ARE WORKING OK, but when I want
to use $db = new SQLiteDatabase, PHP says that SQLiteDatabase class is
not found! Why is that? I listed all predefined classes in my script
and SQLiteDatabase is not on the list.

I thought I installed everything properly, where is the problem?

Thanks for any help,

--
Szymon