]> granicus.if.org Git - php/commitdiff
Fix Win32 linkage problems
authorZeev Suraski <zeev@php.net>
Sun, 31 Aug 2003 12:41:53 +0000 (12:41 +0000)
committerZeev Suraski <zeev@php.net>
Sun, 31 Aug 2003 12:41:53 +0000 (12:41 +0000)
18 files changed:
ext/curl/interface.c
ext/gmp/gmp.c
ext/ldap/ldap.c
ext/mbstring/mbstring.c
ext/mcve/mcve.c
ext/mssql/php_mssql.c
ext/oci8/oci8.c
ext/odbc/php_odbc.c
ext/openssl/openssl.c
ext/oracle/oracle.c
ext/pcntl/pcntl.c
ext/pcre/php_pcre.c
ext/sockets/sockets.c
ext/sqlite/sqlite.c
ext/sysvmsg/sysvmsg.c
ext/xml/xml.c
ext/xmlrpc/xmlrpc-epi-php.c
ext/yaz/php_yaz.c

index c549ea2983cc645dcddc9d9d0ea509bc392cc118..e606881e056b01530a8a7af5b92d0e65ef57e8f2 100644 (file)
@@ -96,6 +96,9 @@ zend_module_entry curl_module_entry = {
 
 #ifdef COMPILE_DL_CURL
 ZEND_GET_MODULE (curl)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 /* {{{ PHP_MINFO_FUNCTION
index 1363b6710d53256168baf0c8ce6ba311f8d2ee74..4ae71cae867f87f6c36416b1b27fb58d5da6e59d 100644 (file)
@@ -99,6 +99,9 @@ zend_module_entry gmp_module_entry = {
 
 #ifdef COMPILE_DL_GMP
 ZEND_GET_MODULE(gmp)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 static void _php_gmpnum_free(zend_rsrc_list_entry *rsrc TSRMLS_DC);
index 71f06b1731c834fa54761bebee4426293c9700e4..697855a9bfe705ce495cf22ea4e5ab1186c98814 100644 (file)
@@ -180,6 +180,9 @@ zend_module_entry ldap_module_entry = {
 
 #ifdef COMPILE_DL_LDAP
 ZEND_GET_MODULE(ldap)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 static void _close_ldap_link(zend_rsrc_list_entry *rsrc TSRMLS_DC)
index 3d026a928e7c8fc54ec395eb813696bcec7a363e..281d41e04d84af97d032532809b43f6e5910970d 100644 (file)
@@ -227,6 +227,9 @@ ZEND_DECLARE_MODULE_GLOBALS(mbstring)
 
 #ifdef COMPILE_DL_MBSTRING
 ZEND_GET_MODULE(mbstring)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 /* {{{ allocators */
index cc7197ad6a1fe575b706f8b03ba0b5561e60efa4..4d8ea86658948c75c438f15dd5eae86ef563f339 100644 (file)
@@ -150,6 +150,9 @@ zend_module_entry mcve_module_entry = {
 /* declare the module for dynamic loading */
 #ifdef COMPILE_DL_MCVE
 ZEND_GET_MODULE(mcve)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 /* {{{ MCVE_CONN destructor */
index 64c562d8b4059e9e844543d83250f4aab5d3a5fa..559f21c1610e0b82d20281188061618ec44f549c 100644 (file)
@@ -99,6 +99,9 @@ ZEND_DECLARE_MODULE_GLOBALS(mssql)
 
 #ifdef COMPILE_DL_MSSQL
 ZEND_GET_MODULE(mssql)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 #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; } }
index d823678fc3a1d84edbd5f7dc6c3384b4470b87a5..258a149953fafa5df17241fa131a3775cf57f40b 100644 (file)
@@ -144,6 +144,9 @@ PHP_OCI_API php_oci_globals oci_globals;
 
 #ifdef COMPILE_DL_OCI8
 ZEND_GET_MODULE(oci8)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif /* COMPILE_DL */
 
 /* }}} */
index 0adcc7cad8098105d1fa71cdfeae3727bcaab478..5903fcd6c536d89ba5697bf49c5bc98ce55538ef 100644 (file)
@@ -154,6 +154,9 @@ ZEND_API php_odbc_globals odbc_globals;
 
 #ifdef COMPILE_DL_ODBC
 ZEND_GET_MODULE(odbc)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 /* {{{ _free_odbc_result
index 071b5027a6b854e6636e94c2e7c15487bc2c32e9..2618379674e08a5fd1172eb358774d741f5b8736 100644 (file)
@@ -145,6 +145,9 @@ zend_module_entry openssl_module_entry = {
 
 #ifdef COMPILE_DL_OPENSSL
 ZEND_GET_MODULE(openssl)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 static int le_key;
index 431e72162ca2cbcc2393d454bbadd1bb43fccd1d..7f4b279412f79843c573d24564c1c0cf1c2e725f 100644 (file)
@@ -195,6 +195,9 @@ static const text *ora_func_tab[] =
 
 #ifdef COMPILE_DL_ORACLE
 ZEND_GET_MODULE(oracle)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 /* {{{ _close_oraconn
index 6f3a5a9ccd548bf827e00eb5ae1b2295bf162c7e..138021a514ddd56eae2c3dbbfa3768029aba8113 100755 (executable)
@@ -75,6 +75,9 @@ zend_module_entry pcntl_module_entry = {
 
 #ifdef COMPILE_DL_PCNTL
 ZEND_GET_MODULE(pcntl)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 static void pcntl_signal_handler(int);
index e88c222ea3a3d6d1db117c51ab05fac303c2b9f0..b2c314ba769f5d1bb0c234b05497b8507082fd31 100644 (file)
@@ -1529,6 +1529,9 @@ zend_module_entry pcre_module_entry = {
 
 #ifdef COMPILE_DL_PCRE
 ZEND_GET_MODULE(pcre)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 /* }}} */
index d782f2629e7d989b512393d3d8ff7d64ea284c31..ed1dda7bc902c85713091da2ed153ceb8831651a 100644 (file)
@@ -175,6 +175,9 @@ zend_module_entry sockets_module_entry = {
 
 #ifdef COMPILE_DL_SOCKETS
 ZEND_GET_MODULE(sockets)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 /* inet_ntop should be used instead of inet_ntoa */
index 5b1eb922d900b8809349b265d7ce1267a1ddc059..85e3f6691ea6691b34bd70e0b5e40f0d8d208e6a 100644 (file)
@@ -276,6 +276,9 @@ zend_module_entry sqlite_module_entry = {
 
 #ifdef COMPILE_DL_SQLITE
 ZEND_GET_MODULE(sqlite)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 static int php_sqlite_callback_invalidator(struct php_sqlite_agg_functions *funcs TSRMLS_DC)
@@ -1754,10 +1757,15 @@ PHP_FUNCTION(sqlite_fetch_object)
                }
                fci.no_separation = 1;
        
+
                fcc.initialized = 1;
+
                fcc.function_handler = ce->constructor;
+
                fcc.calling_scope = EG(scope);
+
                fcc.object_pp = &return_value;
+
        
                if (zend_call_function(&fci, &fcc TSRMLS_CC) == FAILURE) {
                        zend_throw_exception_ex(sqlite_ce_exception, 0 TSRMLS_CC, "Could not execute %s::%s()", class_name, ce->constructor->common.function_name);
index 73870fe6a0e97095b0f1c4c91c46bceae1d53dd6..a39ceb89a3e0a3d087d1d9eccb6711a6139eb524 100644 (file)
@@ -95,6 +95,9 @@ zend_module_entry sysvmsg_module_entry = {
 
 #ifdef COMPILE_DL_SYSVMSG
 ZEND_GET_MODULE(sysvmsg)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 /* {{{ PHP_INI
index 210d25648d68f88035bfdd7e9bd73afe1bb97a00..10b49119c3621289895be80656ffd1e661f27260 100644 (file)
@@ -63,6 +63,9 @@ PHP_XML_API php_xml_globals xml_globals;
 /* {{{ dynamically loadable module stuff */
 #ifdef COMPILE_DL_XML
 ZEND_GET_MODULE(xml)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif /* COMPILE_DL_XML */
 /* }}} */
 
index 6d5c0d34fa195950e6a04183c13fdaca8a5a044c..f5f4e5f9bad8f88a1fd7cea098635df874dff35a 100644 (file)
@@ -113,6 +113,9 @@ zend_module_entry xmlrpc_module_entry = {
 
 #ifdef COMPILE_DL_XMLRPC
 ZEND_GET_MODULE(xmlrpc)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 /*******************************
index 48fdaa89af5158a713c33804a5b2dbabc4975166..23e1c0c12b7383088d0941d8a0f46841bdcb183c 100644 (file)
@@ -1604,6 +1604,9 @@ zend_module_entry yaz_module_entry = {
 
 #ifdef COMPILE_DL_YAZ
 ZEND_GET_MODULE(yaz)
+# ifdef PHP_WIN32
+# include "zend_arg_defs.c"
+# endif
 #endif
 
 #endif