From: Andrey Hristov Date: Fri, 18 Mar 2011 13:55:25 +0000 (+0000) Subject: WS X-Git-Tag: php-5.4.0alpha1~191^2~145 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c90df5850b6540e5b14e7db81bbe64880b5c98a6;p=php WS --- 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