Re: [PDO] 5.3 and Sqlite in Shared Mode
[email protected] (Johannes Schlüter) Sat, 12 Jun 2010 09:02:29 +0200
| Newsgroups | php.pdo |
|---|---|
| Message-ID | <1276326149.8261.40.camel@samnmax> |
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