diff options
author | Andrey Hristov <andrey@php.net> | 2007-10-16 12:55:05 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2007-10-16 12:55:05 +0000 |
commit | 1421ccd4c08289705dc6902febc5e099dfbd4309 (patch) | |
tree | e903295d6046119dbf5ebd400ce79cc25b499aaa | |
parent | 55d0b9780ff836148ab491e7a27a4e2df3fa1b13 (diff) | |
download | php-git-1421ccd4c08289705dc6902febc5e099dfbd4309.tar.gz |
Fix bug due to shadowing of variables. This one is pretty-pretty rare,
caught by source code inspection.
-rw-r--r-- | ext/mysqli/mysqli_prop.c | 4 |
1 files changed, 2 insertions, 2 deletions
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;\ |