]> granicus.if.org Git - php/commitdiff
fix build issues
authorWez Furlong <wez@php.net>
Sat, 25 Dec 2004 04:01:30 +0000 (04:01 +0000)
committerWez Furlong <wez@php.net>
Sat, 25 Dec 2004 04:01:30 +0000 (04:01 +0000)
ext/pdo_sqlite/config.m4
ext/pdo_sqlite/sqlite_driver.c

index ce723c0e3e6980805e794d41998214d1a0ebb27e..fe5ef497b906b3dded1fd9d8665d9f57a95839e1 100644 (file)
@@ -5,7 +5,7 @@ PHP_ARG_WITH(pdo-sqlite, for sqlite 3 driver for PDO,
 [  --with-pdo-sqlite             Include PDO sqlite 3 support])
 
 if test "$PHP_PDO_SQLITE" != "no"; then
-  SEARCH_PATH="/usr/local /usr"     # you might want to change this
+  SEARCH_PATH="$PHP_PDO_SQLITE /usr/local /usr"     # you might want to change this
   SEARCH_FOR="/include/sqlite3.h"  # you most likely want to change this
   if test -r $PHP_PDO_SQLITE/$SEARCH_FOR; then # path given as parameter
     PDO_SQLITE_DIR=$PHP_PDO_SQLITE
@@ -35,7 +35,7 @@ if test "$PHP_PDO_SQLITE" != "no"; then
   ],[
     AC_MSG_ERROR([wrong sqlite lib version or lib not found])
   ],[
-    -L$PDO_SQLITE_DIR/lib -lm -ldl
+    -L$PDO_SQLITE_DIR/lib -lm
   ])
   PHP_SUBST(PDO_SQLITE_SHARED_LIBADD)
 
index ca73ac8b54ba70693a42c7ba6ab5571a2b7dc7ed..7be1dab798a3883764e9e907ed331d4f159d2982 100644 (file)
@@ -327,7 +327,7 @@ static int pdo_sqlite_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS
        if (driver_options) {
                timeout = pdo_attr_lval(driver_options, PDO_ATTR_TIMEOUT, timeout TSRMLS_CC);
        }
-       sqlite_busy_timeout(H->db, timeout * 1000);
+       sqlite3_busy_timeout(H->db, timeout * 1000);
 
        dbh->alloc_own_columns = 1;
        dbh->supports_placeholders = PDO_PLACEHOLDER_POSITIONAL;