]> granicus.if.org Git - php/commitdiff
Fix some compile results warnings
authorGabriel Caruso <carusogabriel34@gmail.com>
Sat, 17 Feb 2018 15:51:37 +0000 (13:51 -0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 18 Feb 2018 15:22:31 +0000 (16:22 +0100)
ext/ldap/ldap.c
ext/oci8/oci8.c

index ea8ec2288ae82eb433dcc0eeb010b24f9bf662ab..aad747d309b1d03b297c98570172cdbd6385d02b 100644 (file)
@@ -3328,7 +3328,7 @@ PHP_FUNCTION(ldap_parse_result)
        zval *link, *result, *errcode, *matcheddn, *errmsg, *referrals, *serverctrls;
        ldap_linkdata *ld;
        LDAPMessage *ldap_result;
-       LDAPControl **lserverctrls = NULL, **ctrlp = NULL;
+       LDAPControl **lserverctrls = NULL;
        char **lreferrals, **refp;
        char *lmatcheddn, *lerrmsg;
        int rc, lerrcode, myargcount = ZEND_NUM_ARGS();
index f09feac0614298eb514cd12bf6ca23a7a7625a93..0a8c482500dd2ded37e5fd8e8ac685ad8dd061de 100644 (file)
@@ -1537,7 +1537,7 @@ sb4 php_oci_error(OCIError *err_p, sword errstatus)
                case OCI_ERROR:
                        errcode = php_oci_fetch_errmsg(err_p, errbuf, sizeof(errbuf));
                        if (errcode) {
-                               php_error_docref(NULL, E_WARNING, "%s", errbuf, sizeof(errbuf));
+                               php_error_docref(NULL, E_WARNING, "%s", errbuf);
                        } else {
                                php_error_docref(NULL, E_WARNING, "failed to fetch error message");
                        }