From: Andrey Hristov Date: Tue, 16 Oct 2007 12:55:38 +0000 (+0000) Subject: MFB: Fix bug due to shadowing of variables. This one is pretty-pretty rare, X-Git-Tag: RELEASE_2_0_0a1~1587 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=731a49ed0e6703e8830c0c61a8e2b86b2fa91224;p=php MFB: Fix bug due to shadowing of variables. This one is pretty-pretty rare, caught by source code inspection. --- diff --git a/ext/mysqli/mysqli_prop.c b/ext/mysqli/mysqli_prop.c index 7ac113bb59..c74f7c6857 100644 --- a/ext/mysqli/mysqli_prop.c +++ b/ext/mysqli/mysqli_prop.c @@ -88,8 +88,8 @@ static int __func(mysqli_object *obj, zval **retval TSRMLS_DC) \ ZVAL_LONG(*retval, l);\ } else { \ char *ret; \ - int l = spprintf(&ret, 0, MYSQLI_LLU_SPEC, (my_ulonglong)l); \ - ZVAL_STRINGL(*retval, ret, l, 0); \ + int ret_len = spprintf(&ret, 0, MYSQLI_LLU_SPEC, (my_ulonglong)l); \ + ZVAL_STRINGL(*retval, ret, ret_len, 0); \ } \ }\ return SUCCESS;\