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

ext/mysqli/mysqli_prop.c

index 7ac113bb59b218259a73bdebe2098454011e8aec..c74f7c685758754cd5766a78fc1a640d22ea2c93 100644 (file)
@@ -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;\