Re: [PDO] 5.3 and Sqlite in Shared Mode

[email protected] (Hannes Magnusson) Sat, 12 Jun 2010 00:30:28 +0200
Newsgroups php.pdo
Message-ID <[email protected]>
2010/6/8 Johannes Schlüter <[email protected]>:
> On Mon, 2010-06-07 at 23:05 +0200, Benjamin Eberlei wrote:
>> indeed that does the trick, using --without-sqlite and adding
>> --with-pdo-sqlite=shared,/usr and its working smoothly.
>
> Please add a note about your working configuration to the bug report.
>
>> Am I right that PDO has to be all dynamically or all statically linked
>> (and mixing is not possible)..?
>
> In theory it should be possible to have PDO core static built and
> loading the individual drivers dynamically. Didn't test this for a long
> time,though.


The docs say[1]:
Note: When building PDO as a shared extension (*not recommended*) then
all PDO drivers *must* be loaded *after* PDO itself.

And seem to recommend static building, but then in the Windows notes
it says that even PDO-core is built as shared extension...

Is there any reason why building pdo and all drivers as shared on
windows would work, but not *nix?

-Hannes

[1] http://no.php.net/manual/en/pdo.installation.php