Skip to content

Commit 8767205

Browse files
committed
Fix Win32 linkage problems
1 parent f9ee319 commit 8767205

File tree

18 files changed

+59
-0
lines changed

18 files changed

+59
-0
lines changed

ext/curl/interface.c

+3
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ zend_module_entry curl_module_entry = {
9696

9797
#ifdef COMPILE_DL_CURL
9898
ZEND_GET_MODULE (curl)
99+
# ifdef PHP_WIN32
100+
# include "zend_arg_defs.c"
101+
# endif
99102
#endif
100103

101104
/* {{{ PHP_MINFO_FUNCTION

ext/gmp/gmp.c

+3
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ zend_module_entry gmp_module_entry = {
9999

100100
#ifdef COMPILE_DL_GMP
101101
ZEND_GET_MODULE(gmp)
102+
# ifdef PHP_WIN32
103+
# include "zend_arg_defs.c"
104+
# endif
102105
#endif
103106

104107
static void _php_gmpnum_free(zend_rsrc_list_entry *rsrc TSRMLS_DC);

ext/ldap/ldap.c

+3
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ zend_module_entry ldap_module_entry = {
180180

181181
#ifdef COMPILE_DL_LDAP
182182
ZEND_GET_MODULE(ldap)
183+
# ifdef PHP_WIN32
184+
# include "zend_arg_defs.c"
185+
# endif
183186
#endif
184187

185188
static void _close_ldap_link(zend_rsrc_list_entry *rsrc TSRMLS_DC)

ext/mbstring/mbstring.c

+3
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ ZEND_DECLARE_MODULE_GLOBALS(mbstring)
227227

228228
#ifdef COMPILE_DL_MBSTRING
229229
ZEND_GET_MODULE(mbstring)
230+
# ifdef PHP_WIN32
231+
# include "zend_arg_defs.c"
232+
# endif
230233
#endif
231234

232235
/* {{{ allocators */

ext/mcve/mcve.c

+3
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ zend_module_entry mcve_module_entry = {
150150
/* declare the module for dynamic loading */
151151
#ifdef COMPILE_DL_MCVE
152152
ZEND_GET_MODULE(mcve)
153+
# ifdef PHP_WIN32
154+
# include "zend_arg_defs.c"
155+
# endif
153156
#endif
154157

155158
/* {{{ MCVE_CONN destructor */

ext/mssql/php_mssql.c

+3
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ ZEND_DECLARE_MODULE_GLOBALS(mssql)
9999

100100
#ifdef COMPILE_DL_MSSQL
101101
ZEND_GET_MODULE(mssql)
102+
# ifdef PHP_WIN32
103+
# include "zend_arg_defs.c"
104+
# endif
102105
#endif
103106

104107
#define CHECK_LINK(link) { if (link==-1) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "A link to the server could not be established"); RETURN_FALSE; } }

ext/oci8/oci8.c

+3
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ PHP_OCI_API php_oci_globals oci_globals;
144144

145145
#ifdef COMPILE_DL_OCI8
146146
ZEND_GET_MODULE(oci8)
147+
# ifdef PHP_WIN32
148+
# include "zend_arg_defs.c"
149+
# endif
147150
#endif /* COMPILE_DL */
148151

149152
/* }}} */

ext/odbc/php_odbc.c

+3
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ ZEND_API php_odbc_globals odbc_globals;
154154

155155
#ifdef COMPILE_DL_ODBC
156156
ZEND_GET_MODULE(odbc)
157+
# ifdef PHP_WIN32
158+
# include "zend_arg_defs.c"
159+
# endif
157160
#endif
158161

159162
/* {{{ _free_odbc_result

ext/openssl/openssl.c

+3
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ zend_module_entry openssl_module_entry = {
145145

146146
#ifdef COMPILE_DL_OPENSSL
147147
ZEND_GET_MODULE(openssl)
148+
# ifdef PHP_WIN32
149+
# include "zend_arg_defs.c"
150+
# endif
148151
#endif
149152

150153
static int le_key;

ext/oracle/oracle.c

+3
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ static const text *ora_func_tab[] =
195195

196196
#ifdef COMPILE_DL_ORACLE
197197
ZEND_GET_MODULE(oracle)
198+
# ifdef PHP_WIN32
199+
# include "zend_arg_defs.c"
200+
# endif
198201
#endif
199202

200203
/* {{{ _close_oraconn

ext/pcntl/pcntl.c

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ zend_module_entry pcntl_module_entry = {
7575

7676
#ifdef COMPILE_DL_PCNTL
7777
ZEND_GET_MODULE(pcntl)
78+
# ifdef PHP_WIN32
79+
# include "zend_arg_defs.c"
80+
# endif
7881
#endif
7982

8083
static void pcntl_signal_handler(int);

ext/pcre/php_pcre.c

+3
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,9 @@ zend_module_entry pcre_module_entry = {
15291529

15301530
#ifdef COMPILE_DL_PCRE
15311531
ZEND_GET_MODULE(pcre)
1532+
# ifdef PHP_WIN32
1533+
# include "zend_arg_defs.c"
1534+
# endif
15321535
#endif
15331536

15341537
/* }}} */

ext/sockets/sockets.c

+3
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ zend_module_entry sockets_module_entry = {
175175

176176
#ifdef COMPILE_DL_SOCKETS
177177
ZEND_GET_MODULE(sockets)
178+
# ifdef PHP_WIN32
179+
# include "zend_arg_defs.c"
180+
# endif
178181
#endif
179182

180183
/* inet_ntop should be used instead of inet_ntoa */

ext/sqlite/sqlite.c

+8
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,9 @@ zend_module_entry sqlite_module_entry = {
276276

277277
#ifdef COMPILE_DL_SQLITE
278278
ZEND_GET_MODULE(sqlite)
279+
# ifdef PHP_WIN32
280+
# include "zend_arg_defs.c"
281+
# endif
279282
#endif
280283

281284
static int php_sqlite_callback_invalidator(struct php_sqlite_agg_functions *funcs TSRMLS_DC)
@@ -1754,10 +1757,15 @@ PHP_FUNCTION(sqlite_fetch_object)
17541757
}
17551758
fci.no_separation = 1;
17561759

1760+
17571761
fcc.initialized = 1;
1762+
17581763
fcc.function_handler = ce->constructor;
1764+
17591765
fcc.calling_scope = EG(scope);
1766+
17601767
fcc.object_pp = &return_value;
1768+
17611769

17621770
if (zend_call_function(&fci, &fcc TSRMLS_CC) == FAILURE) {
17631771
zend_throw_exception_ex(sqlite_ce_exception, 0 TSRMLS_CC, "Could not execute %s::%s()", class_name, ce->constructor->common.function_name);

ext/sysvmsg/sysvmsg.c

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ zend_module_entry sysvmsg_module_entry = {
9595

9696
#ifdef COMPILE_DL_SYSVMSG
9797
ZEND_GET_MODULE(sysvmsg)
98+
# ifdef PHP_WIN32
99+
# include "zend_arg_defs.c"
100+
# endif
98101
#endif
99102

100103
/* {{{ PHP_INI

ext/xml/xml.c

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ PHP_XML_API php_xml_globals xml_globals;
6363
/* {{{ dynamically loadable module stuff */
6464
#ifdef COMPILE_DL_XML
6565
ZEND_GET_MODULE(xml)
66+
# ifdef PHP_WIN32
67+
# include "zend_arg_defs.c"
68+
# endif
6669
#endif /* COMPILE_DL_XML */
6770
/* }}} */
6871

ext/xmlrpc/xmlrpc-epi-php.c

+3
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ zend_module_entry xmlrpc_module_entry = {
113113

114114
#ifdef COMPILE_DL_XMLRPC
115115
ZEND_GET_MODULE(xmlrpc)
116+
# ifdef PHP_WIN32
117+
# include "zend_arg_defs.c"
118+
# endif
116119
#endif
117120

118121
/*******************************

ext/yaz/php_yaz.c

+3
Original file line numberDiff line numberDiff line change
@@ -1604,6 +1604,9 @@ zend_module_entry yaz_module_entry = {
16041604

16051605
#ifdef COMPILE_DL_YAZ
16061606
ZEND_GET_MODULE(yaz)
1607+
# ifdef PHP_WIN32
1608+
# include "zend_arg_defs.c"
1609+
# endif
16071610
#endif
16081611

16091612
#endif

0 commit comments

Comments
 (0)