diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2011-02-14 14:05:46 +0000 | 
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2011-02-14 14:05:46 +0000 | 
| commit | 86efc8e55e908b005cab2c79d04b33c436453d58 (patch) | |
| tree | 19cef39cf7c19ed45ff23d7d1b4324dffd024b87 /ext/mysql/php_mysql.c | |
| parent | 64351b7addc5bdb9012c8c1b63c47d54fcb2a86d (diff) | |
| download | php-git-86efc8e55e908b005cab2c79d04b33c436453d58.tar.gz | |
Fixed variable re-declarations
Diffstat (limited to 'ext/mysql/php_mysql.c')
| -rw-r--r-- | ext/mysql/php_mysql.c | 14 | 
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 4fb976b904..ddd8d22ee2 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -371,11 +371,11 @@ void timeout(int sig);  	if (mysql->active_result_id) { \  		do {					\  			int type;			\ -			MYSQL_RES *mysql_result;	\ +			MYSQL_RES *_mysql_result;	\  							\ -			mysql_result = (MYSQL_RES *) zend_list_find(mysql->active_result_id, &type);	\ -			if (mysql_result && type==le_result) {						\ -				if (mysql_result_is_unbuffered(mysql_result) && !mysql_eof(mysql_result)) { \ +			_mysql_result = (MYSQL_RES *) zend_list_find(mysql->active_result_id, &type);	\ +			if (_mysql_result && type==le_result) {						\ +				if (mysql_result_is_unbuffered(_mysql_result) && !mysql_eof(_mysql_result)) { \  					php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Function called without first fetching all rows from a previous unbuffered query");	\  				}						\  				zend_list_delete(mysql->active_result_id);	\ @@ -2126,12 +2126,12 @@ static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, long result_type,  			fci.retval_ptr_ptr = &retval_ptr;  			if (ctor_params && Z_TYPE_P(ctor_params) != IS_NULL) {  				if (Z_TYPE_P(ctor_params) == IS_ARRAY) { -					HashTable *ht = Z_ARRVAL_P(ctor_params); +					HashTable *htl = Z_ARRVAL_P(ctor_params);  					Bucket *p;  					fci.param_count = 0; -					fci.params = safe_emalloc(sizeof(zval*), ht->nNumOfElements, 0); -					p = ht->pListHead; +					fci.params = safe_emalloc(sizeof(zval*), htl->nNumOfElements, 0); +					p = htl->pListHead;  					while (p != NULL) {  						fci.params[fci.param_count++] = (zval**)p->pData;  						p = p->pListNext;  | 
