]> granicus.if.org Git - php/commitdiff
fix params parsing
authorStanislav Malyshev <stas@php.net>
Mon, 1 Aug 2011 04:29:37 +0000 (04:29 +0000)
committerStanislav Malyshev <stas@php.net>
Mon, 1 Aug 2011 04:29:37 +0000 (04:29 +0000)
ext/dom/document.c
ext/interbase/interbase.c
ext/ldap/ldap.c

index b5402472b793a1fa82a0c65ff851143d0d66bace..393f178882000ef61ddd29b91433dc61fda47e4d 100644 (file)
@@ -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();
index 6578469852ceb8f96ae9ed2f6149bb35cf6ec6b7..10d3a848072b05febb48bd042315bc156c3fa4f8 100644 (file)
@@ -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;
index 04caa86da7d073abb08f726ddba1eb78ed53ed34..fa0a9f12794c2e305a1950d8ebd811bcc84c8a33 100644 (file)
@@ -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;