From a4a1fc5552b8821990a881f742d4b453861aa3f1 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sat, 17 May 2014 10:28:54 +0800 Subject: [PATCH] Fixed signed --- ext/mysqli/mysqli_api.c | 2 +- ext/pdo/pdo_stmt.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index 6c38cfff44..45456d2a36 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -1310,7 +1310,7 @@ PHP_FUNCTION(mysqli_field_seek) { MYSQL_RES *result; zval *mysql_result; - unsigned long fieldnr; + long fieldnr; if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", &mysql_result, mysqli_result_class_entry, &fieldnr) == FAILURE) { return; diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 62db2c6636..5d291c0771 100644 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -464,10 +464,12 @@ static PHP_METHOD(PDOStatement, execute) param.paramno = -1; } else { /* we're okay to be zero based here */ + /* num_index is unsignend if (num_index < 0) { pdo_raise_impl_error(stmt->dbh, stmt, "HY093", NULL TSRMLS_CC); RETURN_FALSE; } + */ param.paramno = num_index; } -- 2.50.1