diff options
Diffstat (limited to 'ext/pdo/pdo_dbh.c')
-rw-r--r-- | ext/pdo/pdo_dbh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 5d1a2ff2d2..1e282d0b43 100644 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -962,9 +962,9 @@ static PHP_METHOD(PDO, lastInsertId) pdo_raise_impl_error(dbh, NULL, "IM001", "driver does not support lastInsertId()"); RETURN_FALSE; } else { - int id_len; + size_t id_len; char *id; - id = dbh->methods->last_id(dbh, name, (unsigned int *)&id_len); + id = dbh->methods->last_id(dbh, name, &id_len); if (!id) { PDO_HANDLE_DBH_ERR(); RETURN_FALSE; @@ -1136,7 +1136,7 @@ static PHP_METHOD(PDO, quote) size_t str_len; zend_long paramtype = PDO_PARAM_STR; char *qstr; - int qlen; + size_t qlen; if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &str, &str_len, ¶mtype)) { RETURN_FALSE; |