]> git.pld-linux.org Git - packages/php.git/commitdiff
- sqlite maybe be compiled without extension loading support
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 16 Mar 2009 19:06:25 +0000 (19:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- http://bugs.php.net/bug.php?id=47678

Changed files:
    php-sqlite3-loadext.patch -> 1.1

php-sqlite3-loadext.patch [new file with mode: 0644]

diff --git a/php-sqlite3-loadext.patch b/php-sqlite3-loadext.patch
new file mode 100644 (file)
index 0000000..fd99769
--- /dev/null
@@ -0,0 +1,35 @@
+--- php5.3-200903141330/ext/sqlite3/config0.m4~        2009-01-13 05:41:28.000000000 +0200
++++ php5.3-200903141330/ext/sqlite3/config0.m4 2009-03-16 19:13:43.350625710 +0200
+@@ -51,6 +51,10 @@
+       AC_DEFINE(HAVE_SQLITE3_KEY, 1, [have commercial sqlite3 with crypto support])
+     ])
++    PHP_CHECK_LIBRARY(sqlite3,sqlite3_enable_load_extension,[
++      AC_DEFINE(HAVE_SQLITE3_LOAD_EXTENSION, 1, [have sqlite3 built with --enable-load-extension])
++    ])
++
+   else
+     AC_MSG_CHECKING([bundled sqlite3 library])
+     AC_MSG_RESULT([yes])
+--- php5.3-200903141330/ext/sqlite3/sqlite3.c  2009-03-16 19:17:13.464135377 +0200
++++ php5.3-200903141330/ext/sqlite3/sqlite3.c  2009-03-16 21:04:41.540170714 +0200
+@@ -283,6 +283,11 @@
+               return;
+       }
++#ifdef HAVE_SQLITE3_LOAD_EXTENSION
++      php_error_docref(NULL TSRMLS_CC, E_WARNING, "Your version of SQLite doesn't support loading extensions");
++      RETURN_FALSE;
++#else
++
+       if (!SQLITE3G(extension_dir)) {
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "SQLite Extension are disabled");
+               RETURN_FALSE;
+@@ -326,6 +331,7 @@
+       sqlite3_enable_load_extension(db_obj->db, 0);
+       RETURN_TRUE;
++#endif
+ }
+ /* }}} */
This page took 1.165939 seconds and 4 git commands to generate.