summaryrefslogtreecommitdiff
path: root/ext/rpc/xmlrpc/xmlrpc-epi-php.c
diff options
context:
space:
mode:
authorShane Caraveo <shane@php.net>2001-12-03 22:33:32 +0000
committerShane Caraveo <shane@php.net>2001-12-03 22:33:32 +0000
commit7b03b7571bb934c6309e58675a3c89f55c3e41c9 (patch)
tree9a05b5f4a66e23982b6518ce58a34722d9a220ea /ext/rpc/xmlrpc/xmlrpc-epi-php.c
parent288d96229e9c12efffb045231c01f1f0e6d63a47 (diff)
downloadphp-git-7b03b7571bb934c6309e58675a3c89f55c3e41c9.tar.gz
Make xmlrpc module compilable on windows. compiles, but untested.
Diffstat (limited to 'ext/rpc/xmlrpc/xmlrpc-epi-php.c')
-rw-r--r--ext/rpc/xmlrpc/xmlrpc-epi-php.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/rpc/xmlrpc/xmlrpc-epi-php.c b/ext/rpc/xmlrpc/xmlrpc-epi-php.c
index c73fe67413..a36399c05e 100644
--- a/ext/rpc/xmlrpc/xmlrpc-epi-php.c
+++ b/ext/rpc/xmlrpc/xmlrpc-epi-php.c
@@ -64,7 +64,9 @@
#include "ext/standard/info.h"
#include "php_ini.h"
#include "php_xmlrpc.h"
+#ifndef PHP_WIN32
#include "php_config.h"
+#endif
#include "xmlrpc.h"
#define PHP_EXT_VERSION "0.50"
@@ -317,6 +319,8 @@ static int add_pval(pval* list, const char* id, pval** val) {
if(id) return zend_hash_update(Z_ARRVAL_P(list), (char*)id, strlen(id)+1, (void *) val, sizeof(pval **), NULL);
else return zend_hash_next_index_insert(Z_ARRVAL_P(list), (void *) val, sizeof(pval **), NULL);
}
+ /* what is the correct return on error? */
+ return 0;
}
#if ZEND_MODULE_API_NO >= 20001222