From: Ard Biesheuvel Date: Wed, 23 Jun 2004 13:20:54 +0000 (+0000) Subject: Fixed some int-long issues X-Git-Tag: php-5.0.0~140 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18cd69ef742fb4ecd1ca3472825b845ea883b67d;p=php Fixed some int-long issues --- diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 8d40d24d32..aedc5d18d6 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -134,10 +134,10 @@ static PHP_FUNCTION(dbh_constructor) pdo_dbh_t *dbh = NULL; zend_bool is_persistent = FALSE; char *data_source; - long data_source_len; + int data_source_len; char *colon; char *username=NULL, *password=NULL; - long usernamelen, passwordlen; + int usernamelen, passwordlen; pdo_driver_t *driver = NULL; zval *driver_options = NULL; @@ -215,7 +215,7 @@ static PHP_METHOD(PDO, prepare) pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); pdo_stmt_t *stmt; char *statement; - long statement_len; + int statement_len; zval *driver_options = NULL; long options = 0; @@ -425,7 +425,7 @@ static PHP_METHOD(PDO, exec) { pdo_dbh_t *dbh = zend_object_store_get_object(getThis() TSRMLS_CC); char *statement; - long statement_len; + int statement_len; long ret; if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &statement, &statement_len)) {