From: Andrey Hristov Date: Tue, 16 Oct 2007 12:55:05 +0000 (+0000) Subject: Fix bug due to shadowing of variables. This one is pretty-pretty rare, X-Git-Tag: RELEASE_1_3_1~842 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1421ccd4c08289705dc6902febc5e099dfbd4309;p=php 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 fd8281b551..446ce7ecdd 100644 --- a/ext/mysqli/mysqli_prop.c +++ b/ext/mysqli/mysqli_prop.c @@ -86,8 +86,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;\