|
1 |
| -diff --git a/ext/pdo/config.m4 b/ext/pdo/config.m4 |
2 |
| -index 9b9a3e36..11481231 100644 |
3 |
| ---- a/ext/pdo/config.m4 |
4 |
| -+++ b/ext/pdo/config.m4 |
5 |
| -@@ -4,15 +4,14 @@ PHP_ARG_ENABLE([pdo], |
6 |
| - [Disable PHP Data Objects support])], |
7 |
| - [yes]) |
| 1 | +diff --git a/ext/pdo_sqlite/php_pdo_sqlite_int.h b/ext/pdo_sqlite/php_pdo_sqlite_int.h |
| 2 | +index c1d3a953..55c18393 100644 |
| 3 | +--- a/ext/pdo_sqlite/php_pdo_sqlite_int.h |
| 4 | ++++ b/ext/pdo_sqlite/php_pdo_sqlite_int.h |
| 5 | +@@ -19,7 +19,7 @@ |
| 6 | + #ifndef PHP_PDO_SQLITE_INT_H |
| 7 | + #define PHP_PDO_SQLITE_INT_H |
8 | 8 |
|
9 |
| --if test "$PHP_PDO" != "no"; then |
10 |
| -- |
11 |
| -- dnl Make sure $PHP_PDO is 'yes' when it's not 'no' :) |
12 |
| -- PHP_PDO=yes |
13 |
| -+dnl Make sure $PHP_PDO is 'yes' when it's not 'no' :) |
14 |
| -+PHP_PDO=yes |
15 |
| - |
16 |
| -+if test "$PHP_PDO" != "no"; then |
17 |
| -+ dnl so we always include the known-good working hack. |
18 |
| - PHP_NEW_EXTENSION(pdo, pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c, $ext_shared) |
19 |
| - PHP_ADD_EXTENSION_DEP(pdo, spl, true) |
20 |
| - PHP_INSTALL_HEADERS(ext/pdo, [php_pdo.h php_pdo_driver.h php_pdo_error.h]) |
21 |
| - |
22 |
| -- dnl so we always include the known-good working hack. |
23 |
| - PHP_ADD_MAKEFILE_FRAGMENT |
24 |
| - fi |
25 |
| -diff --git a/ext/pdo_sqlite/config.m4 b/ext/pdo_sqlite/config.m4 |
26 |
| -index fbb3d05c..42a8fd47 100644 |
27 |
| ---- a/ext/pdo_sqlite/config.m4 |
28 |
| -+++ b/ext/pdo_sqlite/config.m4 |
29 |
| -@@ -10,25 +10,7 @@ if test "$PHP_PDO_SQLITE" != "no"; then |
30 |
| - AC_MSG_ERROR([PDO is not enabled! Add --enable-pdo to your configure line.]) |
31 |
| - fi |
32 |
| - |
33 |
| -- PHP_CHECK_PDO_INCLUDES |
34 |
| -- |
35 |
| -- PKG_CHECK_MODULES([SQLITE], [sqlite3 > 3.7.4]) |
36 |
| -- |
37 |
| -- PHP_EVAL_INCLINE($SQLITE_CFLAGS) |
38 |
| -- PHP_EVAL_LIBLINE($SQLITE_LIBS, PDO_SQLITE_SHARED_LIBADD) |
39 |
| -- AC_DEFINE(HAVE_PDO_SQLITELIB, 1, [Define to 1 if you have the pdo_sqlite extension enabled.]) |
40 |
| -- |
41 |
| -- PHP_CHECK_LIBRARY(sqlite3, sqlite3_close_v2, [ |
42 |
| -- AC_DEFINE(HAVE_SQLITE3_CLOSE_V2, 1, [have sqlite3_close_v2]) |
43 |
| -- ], [], [$PDO_SQLITE_SHARED_LIBADD]) |
44 |
| -- |
45 |
| -- PHP_CHECK_LIBRARY(sqlite3, sqlite3_column_table_name, [ |
46 |
| -- AC_DEFINE(HAVE_SQLITE3_COLUMN_TABLE_NAME, 1, [have sqlite3_column_table_name]) |
47 |
| -- ], [], [$PDO_SQLITE_SHARED_LIBADD]) |
48 |
| -- |
49 |
| -- PHP_SUBST(PDO_SQLITE_SHARED_LIBADD) |
50 |
| - PHP_NEW_EXTENSION(pdo_sqlite, pdo_sqlite.c sqlite_driver.c sqlite_statement.c, |
51 |
| -- $ext_shared,,-I$pdo_cv_inc_path) |
52 |
| -- |
53 |
| -+ $ext_shared,,-I$pdo_cv_inc_path) |
54 |
| - PHP_ADD_EXTENSION_DEP(pdo_sqlite, pdo) |
55 |
| - fi |
56 |
| -diff --git a/ext/pdo_sqlite/pdo_sqlite.c b/ext/pdo_sqlite/pdo_sqlite.c |
57 |
| -index 5c2fd63c..e237600c 100644 |
58 |
| ---- a/ext/pdo_sqlite/pdo_sqlite.c |
59 |
| -+++ b/ext/pdo_sqlite/pdo_sqlite.c |
60 |
| -@@ -23,8 +23,7 @@ |
61 |
| - #include "php.h" |
62 |
| - #include "php_ini.h" |
63 |
| - #include "ext/standard/info.h" |
64 |
| --#include "pdo/php_pdo.h" |
65 |
| --#include "pdo/php_pdo_driver.h" |
66 |
| -+#include "../pdo/php_pdo_driver.h" |
67 |
| - #include "php_pdo_sqlite.h" |
68 |
| - #include "php_pdo_sqlite_int.h" |
69 |
| - #include "zend_exceptions.h" |
70 |
| -diff --git a/ext/pdo_sqlite/sqlite_driver.c b/ext/pdo_sqlite/sqlite_driver.c |
71 |
| -index 0595bd09..e2d6f6ec 100644 |
72 |
| ---- a/ext/pdo_sqlite/sqlite_driver.c |
73 |
| -+++ b/ext/pdo_sqlite/sqlite_driver.c |
74 |
| -@@ -23,8 +23,7 @@ |
75 |
| - #include "php.h" |
76 |
| - #include "php_ini.h" |
77 |
| - #include "ext/standard/info.h" |
78 |
| --#include "pdo/php_pdo.h" |
79 |
| --#include "pdo/php_pdo_driver.h" |
80 |
| -+#include "../pdo/php_pdo_driver.h" |
81 |
| - #include "php_pdo_sqlite.h" |
82 |
| - #include "php_pdo_sqlite_int.h" |
83 |
| - #include "zend_exceptions.h" |
84 |
| -diff --git a/ext/pdo_sqlite/sqlite_statement.c b/ext/pdo_sqlite/sqlite_statement.c |
85 |
| -index a8723da6..9f28701b 100644 |
86 |
| ---- a/ext/pdo_sqlite/sqlite_statement.c |
87 |
| -+++ b/ext/pdo_sqlite/sqlite_statement.c |
88 |
| -@@ -23,8 +23,7 @@ |
89 |
| - #include "php.h" |
90 |
| - #include "php_ini.h" |
91 |
| - #include "ext/standard/info.h" |
92 |
| --#include "pdo/php_pdo.h" |
93 |
| --#include "pdo/php_pdo_driver.h" |
94 |
| -+#include "../pdo/php_pdo_driver.h" |
95 |
| - #include "php_pdo_sqlite.h" |
96 |
| - #include "php_pdo_sqlite_int.h" |
97 |
| - |
98 |
| -diff --git a/ext/sqlite3/config0.m4 b/ext/sqlite3/config0.m4 |
99 |
| -index e83ec5f2..b94508f3 100644 |
100 |
| ---- a/ext/sqlite3/config0.m4 |
101 |
| -+++ b/ext/sqlite3/config0.m4 |
102 |
| -@@ -5,26 +5,6 @@ PHP_ARG_WITH([sqlite3], |
103 |
| - [yes]) |
| 9 | +-#include <sqlite3.h> |
| 10 | ++#include "main/sqlite3.h" |
104 | 11 |
|
105 |
| - if test $PHP_SQLITE3 != "no"; then |
106 |
| -- PKG_CHECK_MODULES([SQLITE], [sqlite3 > 3.7.4]) |
107 |
| -- |
108 |
| -- PHP_EVAL_INCLINE($SQLITE_CFLAGS) |
109 |
| -- PHP_EVAL_LIBLINE($SQLITE_LIBS, SQLITE3_SHARED_LIBADD) |
110 |
| -- AC_DEFINE(HAVE_SQLITE3, 1, [Define to 1 if you have the sqlite3 extension enabled.]) |
111 |
| -- |
112 |
| -- PHP_CHECK_LIBRARY(sqlite3, sqlite3_errstr, [ |
113 |
| -- AC_DEFINE(HAVE_SQLITE3_ERRSTR, 1, [have sqlite3_errstr function]) |
114 |
| -- ], [], [$SQLITE3_SHARED_LIBADD]) |
115 |
| -- |
116 |
| -- PHP_CHECK_LIBRARY(sqlite3, sqlite3_expanded_sql, [ |
117 |
| -- AC_DEFINE(HAVE_SQLITE3_EXPANDED_SQL, 1, [have sqlite3_expanded_sql function]) |
118 |
| -- ], [], [$SQLITE3_SHARED_LIBADD]) |
119 |
| -- |
120 |
| -- PHP_CHECK_LIBRARY(sqlite3,sqlite3_load_extension, |
121 |
| -- [], |
122 |
| -- [AC_DEFINE(SQLITE_OMIT_LOAD_EXTENSION, 1, [have sqlite3 with extension support])], |
123 |
| -- [$SQLITE3_SHARED_LIBADD] |
124 |
| -- ) |
125 |
| -- |
126 |
| - PHP_NEW_EXTENSION(sqlite3, sqlite3.c, $ext_shared,,-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1) |
127 |
| - PHP_SUBST(SQLITE3_SHARED_LIBADD) |
128 |
| - fi |
| 12 | + typedef struct { |
| 13 | + const char *file; |
129 | 14 | diff --git a/ext/sqlite3/php_sqlite3_structs.h b/ext/sqlite3/php_sqlite3_structs.h
|
130 |
| -index 3de8aac0..9b2af538 100644 |
| 15 | +index 3de8aac0..401e93d7 100644 |
131 | 16 | --- a/ext/sqlite3/php_sqlite3_structs.h
|
132 | 17 | +++ b/ext/sqlite3/php_sqlite3_structs.h
|
133 |
| -@@ -19,8 +19,6 @@ |
| 18 | +@@ -19,7 +19,7 @@ |
134 | 19 | #ifndef PHP_SQLITE_STRUCTS_H
|
135 | 20 | #define PHP_SQLITE_STRUCTS_H
|
136 | 21 |
|
137 | 22 | -#include <sqlite3.h>
|
138 |
| -- |
| 23 | ++#include "main/sqlite3.h" |
| 24 | + |
139 | 25 | /* for backwards compatibility reasons */
|
140 | 26 | #ifndef SQLITE_OPEN_READONLY
|
141 |
| - #define SQLITE_OPEN_READONLY 0x00000001 |
142 | 27 | diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c
|
143 |
| -index f4d8066a..d5df7114 100644 |
| 28 | +index f4d8066a..afb61446 100644 |
144 | 29 | --- a/ext/sqlite3/sqlite3.c
|
145 | 30 | +++ b/ext/sqlite3/sqlite3.c
|
146 |
| -@@ -20,6 +20,9 @@ |
147 |
| - #include "config.h" |
148 |
| - #endif |
149 |
| - |
150 |
| -+#include "../../main/sqlite3.h" |
151 |
| -+#include "../../main/sqlite3.c" |
152 |
| -+ |
153 |
| - #include "php.h" |
154 |
| - #include "php_ini.h" |
155 |
| - #include "ext/standard/info.h" |
156 |
| -@@ -27,8 +30,6 @@ |
| 31 | +@@ -27,7 +27,8 @@ |
157 | 32 | #include "php_sqlite3_structs.h"
|
158 | 33 | #include "main/SAPI.h"
|
159 | 34 |
|
160 | 35 | -#include <sqlite3.h>
|
161 |
| -- |
| 36 | ++#include "main/sqlite3.c" |
| 37 | ++#include "main/sqlite3.h" |
| 38 | + |
162 | 39 | #include "zend_exceptions.h"
|
163 | 40 | #include "zend_interfaces.h"
|
164 |
| - #include "SAPI.h" |
165 | 41 | diff --git a/sapi/embed/php_embed.c b/sapi/embed/php_embed.c
|
166 | 42 | index 4c7dec6d..65762b8a 100644
|
167 | 43 | --- a/sapi/embed/php_embed.c
|
|
0 commit comments