@@ -88,7 +88,7 @@ static int firebird_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
8888{
8989 pdo_firebird_stmt * S = (pdo_firebird_stmt * )stmt -> driver_data ;
9090 pdo_firebird_db_handle * H = S -> H ;
91- unsigned long affected_rows = 0 ;
91+ php_uint_t affected_rows = 0 ;
9292 static char info_count [] = {isc_info_sql_records };
9393 char result [64 ];
9494
@@ -153,7 +153,7 @@ static int firebird_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
153153
154154/* called by PDO to fetch the next row from a statement */
155155static int firebird_stmt_fetch (pdo_stmt_t * stmt , /* {{{ */
156- enum pdo_fetch_orientation ori , long offset TSRMLS_DC )
156+ enum pdo_fetch_orientation ori , php_int_t offset TSRMLS_DC )
157157{
158158 pdo_firebird_stmt * S = (pdo_firebird_stmt * )stmt -> driver_data ;
159159 pdo_firebird_db_handle * H = S -> H ;
@@ -219,7 +219,7 @@ static int firebird_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) /* {{{
219219
220220/* fetch a blob into a fetch buffer */
221221static int firebird_fetch_blob (pdo_stmt_t * stmt , int colno , char * * ptr , /* {{{ */
222- unsigned long * len , ISC_QUAD * blob_id TSRMLS_DC )
222+ php_uint_t * len , ISC_QUAD * blob_id TSRMLS_DC )
223223{
224224 pdo_firebird_stmt * S = (pdo_firebird_stmt * )stmt -> driver_data ;
225225 pdo_firebird_db_handle * H = S -> H ;
@@ -263,7 +263,7 @@ static int firebird_fetch_blob(pdo_stmt_t *stmt, int colno, char **ptr, /* {{{ *
263263 /* we've found the blob's length, now fetch! */
264264
265265 if (* len ) {
266- unsigned long cur_len ;
266+ php_uint_t cur_len ;
267267 unsigned short seg_len ;
268268 ISC_STATUS stat ;
269269
@@ -296,7 +296,7 @@ static int firebird_fetch_blob(pdo_stmt_t *stmt, int colno, char **ptr, /* {{{ *
296296/* }}} */
297297
298298static int firebird_stmt_get_col (pdo_stmt_t * stmt , int colno , char * * ptr , /* {{{ */
299- unsigned long * len , int * caller_frees TSRMLS_DC )
299+ php_uint_t * len , int * caller_frees TSRMLS_DC )
300300{
301301 pdo_firebird_stmt * S = (pdo_firebird_stmt * )stmt -> driver_data ;
302302 XSQLVAR const * var = & S -> out_sqlda .sqlvar [colno ];
@@ -413,7 +413,7 @@ static int firebird_bind_blob(pdo_stmt_t *stmt, ISC_QUAD *blob_id, zval *param T
413413 pdo_firebird_stmt * S = (pdo_firebird_stmt * )stmt -> driver_data ;
414414 pdo_firebird_db_handle * H = S -> H ;
415415 isc_blob_handle h = NULL ;
416- unsigned long put_cnt = 0 , rem_cnt ;
416+ php_uint_t put_cnt = 0 , rem_cnt ;
417417 unsigned short chunk_size ;
418418 int result = 1 ;
419419
@@ -495,7 +495,7 @@ static int firebird_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_dat
495495
496496 switch (event_type ) {
497497 char * value ;
498- unsigned long value_len ;
498+ php_uint_t value_len ;
499499 int caller_frees ;
500500 zval * parameter ;
501501
@@ -551,9 +551,9 @@ static int firebird_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_dat
551551
552552 case IS_INT :
553553 /* keep the allow-NULL flag */
554- var -> sqltype = (sizeof (long ) == 8 ? SQL_INT64 : SQL_LONG ) | (var -> sqltype & 1 );
554+ var -> sqltype = (sizeof (php_int_t ) == 8 ? SQL_INT64 : SQL_LONG ) | (var -> sqltype & 1 );
555555 var -> sqldata = (void * )& Z_IVAL_P (parameter );
556- var -> sqllen = sizeof (long );
556+ var -> sqllen = sizeof (php_int_t );
557557 break ;
558558 case IS_DOUBLE :
559559 /* keep the allow-NULL flag */
@@ -626,7 +626,7 @@ static int firebird_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_dat
626626 }
627627 case PDO_PARAM_INT :
628628 if (value ) {
629- ZVAL_INT (parameter , * (long * )value );
629+ ZVAL_INT (parameter , * (php_int_t * )value );
630630 break ;
631631 }
632632 case PDO_PARAM_EVT_NORMALIZE :
@@ -654,7 +654,7 @@ static int firebird_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_dat
654654}
655655/* }}} */
656656
657- static int firebird_stmt_set_attribute (pdo_stmt_t * stmt , long attr , zval * val TSRMLS_DC ) /* {{{ */
657+ static int firebird_stmt_set_attribute (pdo_stmt_t * stmt , php_int_t attr , zval * val TSRMLS_DC ) /* {{{ */
658658{
659659 pdo_firebird_stmt * S = (pdo_firebird_stmt * )stmt -> driver_data ;
660660
@@ -675,7 +675,7 @@ static int firebird_stmt_set_attribute(pdo_stmt_t *stmt, long attr, zval *val TS
675675}
676676/* }}} */
677677
678- static int firebird_stmt_get_attribute (pdo_stmt_t * stmt , long attr , zval * val TSRMLS_DC ) /* {{{ */
678+ static int firebird_stmt_get_attribute (pdo_stmt_t * stmt , php_int_t attr , zval * val TSRMLS_DC ) /* {{{ */
679679{
680680 pdo_firebird_stmt * S = (pdo_firebird_stmt * )stmt -> driver_data ;
681681
0 commit comments