]> granicus.if.org Git - php/commitdiff
Add php_pdo_sqlite_external.dll to windows build.
authorWez Furlong <wez@php.net>
Thu, 22 Mar 2007 01:00:23 +0000 (01:00 +0000)
committerWez Furlong <wez@php.net>
Thu, 22 Mar 2007 01:00:23 +0000 (01:00 +0000)
This allows the user to provide their own version of sqlite3.dll.
The php_pdo_sqlite.dll is still there, and will continue to be there.
It is built from the bundled sources.
[[DOC]]
 (this should cc: phpdoc, if it's wrong, please let the docs folks know :-)

NEWS
ext/pdo_sqlite/config.w32

diff --git a/NEWS b/NEWS
index 6c205db00aefa1897e4280a081c2c59047bcb4cb..c2bc14c9bc4a0af8fee065d969a1c5135df13da9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -23,6 +23,9 @@ PHP                                                                        NEWS
 - Added tidyNode::getParent() method (John, Nuno)
 - Added openbasedir and safemode checks in zip:// stream wrapper and 
   ZipArchive::open (Pierre)
+- Added php_pdo_sqlite_external.dll, a version of the PDO SQLite driver that
+  links against an external sqlite3.dll.  This provides Windows users to upgrade
+  their sqlite3 version outside of the PHP release cycle.  (Wez, Edin)
 - Fixed shmop_open() with IPC_CREAT|IPC_EXCL flags on Windows. 
   (Vladimir Kamaev, Tony).
 - Fixed possible leak in ZipArchive::extractTo when safemode checks fails (Ilia)
index f9d663f17f69dc9430116ab819b118d51c797d59..9ab5f12858c4a0aa65bfb14d60b31a4d56e42d79 100644 (file)
@@ -29,3 +29,10 @@ if (PHP_PDO_SQLITE != "no") {
        ADD_EXTENSION_DEP('pdo_sqlite', 'pdo');
 }
 
+ARG_WITH("pdo-sqlite-external", "for pdo_sqlite support from an external dll", "no");
+if (PHP_PDO_SQLITE_EXTERNAL != "no") {
+       CHECK_HEADER_ADD_INCLUDE("sqlite3.h", "CFLAGS_PDO_SQLITE_EXTERNAL", PHP_PDO_SQLITE_EXTERNAL + ";" + PHP_PHP_BUILD + "\\include\\sqlite3");
+       CHECK_LIB("sqlite3-import.lib", "pdo_sqlite_external", PHP_PDO_SQLITE_EXTERNAL + ";" + PHP_PHP_BUILD + "\\lib");
+       EXTENSION("pdo_sqlite_external", "pdo_sqlite.c sqlite_driver.c sqlite_statement.c", null, "/I" + configure_module_dirname, null, "ext\\pdo_sqlite_external");
+       ADD_EXTENSION_DEP('pdo_sqlite_external', 'pdo');
+}