com php-src: Fixed signed: ext/mysqli/mysqli_api.c ext/pd o/pdo_stmt.c
| From: | Xinchen Hui | Date: | Sat, 17 May 2014 02:28:54 +0000 |
| Subject: | com php-src: Fixed signed: ext/mysqli/mysqli_api.c ext/pd o/pdo_stmt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78419@lists.php.net to get a copy of this message | ||
Commit: a4a1fc5552b8821990a881f742d4b453861aa3f1
Author: Xinchen Hui <laruence@php.net> Sat, 17 May 2014 10:28:54 +0800
Parents: 489da59b08a5cb01032adf8659740dbc91799d3a
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a4a1fc5552b8821990a881f742d4b453861aa3f1
Log:
Fixed signed
Changed paths:
M ext/mysqli/mysqli_api.c
M ext/pdo/pdo_stmt.c
Diff:
diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c
index 6c38cff..45456d2 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 62db2c6..5d291c0 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;
}