From 83039b8feecc7f20154fd715301dfb952e4979d7 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Mon, 1 Aug 2011 04:29:37 +0000 Subject: [PATCH] fix params parsing --- ext/dom/document.c | 3 ++- ext/interbase/interbase.c | 3 ++- ext/ldap/ldap.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ext/dom/document.c b/ext/dom/document.c index b5402472b7..393f178882 100644 --- a/ext/dom/document.c +++ b/ext/dom/document.c @@ -2157,7 +2157,8 @@ static void dom_load_html(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{ */ dom_object *intern; dom_doc_propsptr doc_prop; char *source; - int source_len, refcount, ret, options = 0; + int source_len, refcount, ret; + long options = 0; htmlParserCtxtPtr ctxt; id = getThis(); diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c index 6578469852..10d3a84807 100644 --- a/ext/interbase/interbase.c +++ b/ext/interbase/interbase.c @@ -1125,7 +1125,8 @@ PHP_FUNCTION(ibase_drop_db) PHP_FUNCTION(ibase_trans) { - unsigned short i, argn, link_cnt = 0, tpb_len = 0; + unsigned short i, link_cnt = 0, tpb_len = 0; + int argn; char last_tpb[TPB_MAX_SIZE]; ibase_db_link **ib_link = NULL; ibase_trans *ib_trans; diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 04caa86da7..fa0a9f1279 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -587,7 +587,7 @@ static void php_set_opts(LDAP *ldap, int sizelimit, int timelimit, int deref, in */ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope) { - zval *link, *base_dn, **filter, *attrs, **attr; + zval *link, *base_dn, **filter, *attrs = NULL, **attr; long attrsonly, sizelimit, timelimit, deref; char *ldap_base_dn = NULL, *ldap_filter = NULL, **ldap_attrs = NULL; ldap_linkdata *ld = NULL; -- 2.40.0