diff options
author | Xinchen Hui <laruence@php.net> | 2014-05-17 10:28:54 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2014-05-17 10:28:54 +0800 |
commit | a4a1fc5552b8821990a881f742d4b453861aa3f1 (patch) | |
tree | 3577cd7d34859fd5aba862b7e828057264b86136 | |
parent | 489da59b08a5cb01032adf8659740dbc91799d3a (diff) | |
download | php-git-a4a1fc5552b8821990a881f742d4b453861aa3f1.tar.gz |
Fixed signed
-rw-r--r-- | ext/mysqli/mysqli_api.c | 2 | ||||
-rw-r--r-- | ext/pdo/pdo_stmt.c | 2 |
2 files changed, 3 insertions, 1 deletions
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; } |