On Sun, 8 Nov 2009 18:48:40 -0800 (PST), Oftenwrong Soong
<[email protected]> wrote:

>On Sat, 07 Nov 2009 21:04:59 -0500, Ted Rolle <[email protected]> wrote:
><snip>
>>> I'd like to see SQLite instead of MySQL as the
>>> database.
>>
>> You should have this already: SQLite is embedded within PHP since 5.0.0.  
>> The SQLite library is typically not up to date, unfortunately, but it is  
>> nevertheless there.
><snip>
>
> I'm not familiar with PHP but since SQLite is distributed
> as a single C file (the amalgamation) wouldn't it be trivial
> to substitute the newest version into PHP?

Not really, the 'native' php_sqlite is a php specific
wrapper which implements the php sqlite_* interface and
includes the sqlite library source.

pdo_sqlite follows the same scheme, but has a different
(object oriented) interface. The sqlite version it uses
cannot easily be replaced.

Both constructs are maintained by the packager.

The only one which is easily maintainable by the
administrator of the system it has to run on is
pdo_sqlite_external, where the pdo wrapper is a separate
library, next to the sqlite library. In this case one can
use the most recent version simply by replacing the sqlite3
library.

>Soong
-- 
  (  Kees Nuyt
  )
c[_]
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to