diff options
| author | Andrey Hristov <andrey@php.net> | 2011-03-18 13:55:25 +0000 | 
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 2011-03-18 13:55:25 +0000 | 
| commit | c90df5850b6540e5b14e7db81bbe64880b5c98a6 (patch) | |
| tree | 4a16abd137382a382022e066467538e840747cb0 | |
| parent | 2d2d1c7335a5a0851c46e503f098a7c3c0be3054 (diff) | |
| download | php-git-c90df5850b6540e5b14e7db81bbe64880b5c98a6.tar.gz | |
WS
| -rw-r--r-- | ext/mysqlnd/mysqlnd_ps.c | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/mysqlnd/mysqlnd_ps.c b/ext/mysqlnd/mysqlnd_ps.c index 237c088ac4..3a6b6e5ac1 100644 --- a/ext/mysqlnd/mysqlnd_ps.c +++ b/ext/mysqlnd/mysqlnd_ps.c @@ -1305,7 +1305,6 @@ MYSQLND_METHOD(mysqlnd_stmt, send_long_data)(MYSQLND_STMT * const s, unsigned in  		DBG_ERR("command out of sync");  		DBG_RETURN(FAIL);  	} -  	if (param_no >= stmt->param_count) {  		SET_STMT_ERROR(stmt, CR_INVALID_PARAMETER_NO, UNKNOWN_SQLSTATE, "Invalid parameter number");  		DBG_ERR("invalid param_no"); @@ -1424,8 +1423,7 @@ MYSQLND_METHOD(mysqlnd_stmt, bind_parameters)(MYSQLND_STMT * const s, MYSQLND_PA  			*/  			for (i = 0; i < stmt->param_count; i++) {  				/* -				  We may have the last reference, then call zval_ptr_dtor() -				  or we may leak memory. +				  We may have the last reference, then call zval_ptr_dtor() or we may leak memory.  				  Switching from bind_one_parameter to bind_parameters may result in zv being NULL  				*/  				if (stmt->param_bind[i].zv) { @@ -1918,6 +1916,7 @@ MYSQLND_METHOD(mysqlnd_stmt, attr_get)(const MYSQLND_STMT * const s,  }  /* }}} */ +  /* free_result() doesn't actually free stmt->result but only the buffers */  /* {{{ mysqlnd_stmt::free_result */  static enum_func_status  | 
