Re: [PDO] 5.3 and Sqlite in Shared Mode
| From: | Johannes Schlüter | Date: | Sat, 12 Jun 2010 07:02:29 +0000 |
| Subject: | Re: [PDO] 5.3 and Sqlite in Shared Mode | ||
| References: | 1 2 3 4 5 | Groups: | php.pdo |
| Request: | Send a blank email to pdo+get-438@lists.php.net to get a copy of this message | ||
On Sat, 2010-06-12 at 00:30 +0200, Hannes Magnusson wrote:
> > 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?
On Windows, where people don't build themselves we tend to make
everything .dlls. On Linux/Unix we suggest to build the set of
extensions you need/want.
And as said: It should work to make all of it shared. The issue there is
that we can't enforce loading order (=dependencies) but the user has to
load them in the correct order. (loading a PDO driver first will result
in complains by the runtime linker about missing C symbols, we can't
really do anything about it)
johannes