]> granicus.if.org Git - php/commitdiff
Fixed signed
authorXinchen Hui <laruence@php.net>
Sat, 17 May 2014 02:28:54 +0000 (10:28 +0800)
committerXinchen Hui <laruence@php.net>
Sat, 17 May 2014 02:28:54 +0000 (10:28 +0800)
ext/mysqli/mysqli_api.c
ext/pdo/pdo_stmt.c

index 6c38cfff44c621d8f571d04d6cdcfbd09cfcee55..45456d2a36a4a4dd4799df531cf261435d921f97 100644 (file)
@@ -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;
index 62db2c66369bb3c3937f6d71246bfecc773f20d8..5d291c0771b274200ac43d3606f08eacb6942121 100644 (file)
@@ -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;
                        }