]> granicus.if.org Git - php/commitdiff
Fix bug due to shadowing of variables. This one is pretty-pretty rare,
authorAndrey Hristov <andrey@php.net>
Tue, 16 Oct 2007 12:55:05 +0000 (12:55 +0000)
committerAndrey Hristov <andrey@php.net>
Tue, 16 Oct 2007 12:55:05 +0000 (12:55 +0000)
caught by source code inspection.

ext/mysqli/mysqli_prop.c

index fd8281b551ba751a308ced5fcab4e8154294454b..446ce7ecdd50f733729c7477e40cdf8245595183 100644 (file)
@@ -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;\