cvs: php-src(PHP_5_3) /ext/mysqli mysqli_prop.c

From: Date: Tue, 16 Oct 2007 12:55:05 +0000
Subject: cvs: php-src(PHP_5_3) /ext/mysqli mysqli_prop.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-46674@lists.php.net to get a copy of this message
andrey Tue Oct 16 12:55:05 2007 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/mysqli mysqli_prop.c Log: Fix bug due to shadowing of variables. This one is pretty-pretty rare, caught by source code inspection. http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/mysqli_prop.c?r1=1.23.2.5.2.2.2.1&r2=1.23.2.5.2.2.2.2&diff_format=u Index: php-src/ext/mysqli/mysqli_prop.c diff -u php-src/ext/mysqli/mysqli_prop.c:1.23.2.5.2.2.2.1 php-src/ext/mysqli/mysqli_prop.c:1.23.2.5.2.2.2.2 --- php-src/ext/mysqli/mysqli_prop.c:1.23.2.5.2.2.2.1 Fri Oct 5 21:23:56 2007 +++ php-src/ext/mysqli/mysqli_prop.c Tue Oct 16 12:55:05 2007 @@ -15,7 +15,7 @@ | Author: Georg Richter <georg@php.net> | +----------------------------------------------------------------------+ - $Id: mysqli_prop.c,v 1.23.2.5.2.2.2.1 2007/10/05 21:23:56 andrey Exp $ + $Id: mysqli_prop.c,v 1.23.2.5.2.2.2.2 2007/10/16 12:55:05 andrey Exp $ */ #ifdef HAVE_CONFIG_H @@ -86,8 +86,8 @@ 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;\

« previous php.cvs (#46674) next »