From: Gabriel Caruso Date: Sat, 17 Feb 2018 15:51:37 +0000 (-0200) Subject: Fix some compile results warnings X-Git-Tag: php-7.3.0alpha1~363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2933e9ebb441a678202906b6df97038e9c779e6;p=php Fix some compile results warnings --- diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index ea8ec2288a..aad747d309 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -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(); diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index f09feac061..0a8c482500 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -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"); }