@@ -200,7 +200,7 @@ typedef struct _php_conv_base64_encode {
200
200
unsigned int line_ccnt ;
201
201
unsigned int line_len ;
202
202
int lbchars_dup ;
203
- int persistent ;
203
+ bool persistent ;
204
204
unsigned char erem [3 ];
205
205
} php_conv_base64_encode ;
206
206
@@ -226,7 +226,7 @@ static const unsigned char b64_tbl_enc[256] = {
226
226
'w' ,'x' ,'y' ,'z' ,'0' ,'1' ,'2' ,'3' ,'4' ,'5' ,'6' ,'7' ,'8' ,'9' ,'+' ,'/'
227
227
};
228
228
229
- static php_conv_err_t php_conv_base64_encode_ctor (php_conv_base64_encode * inst , unsigned int line_len , const char * lbchars , size_t lbchars_len , int lbchars_dup , int persistent )
229
+ static php_conv_err_t php_conv_base64_encode_ctor (php_conv_base64_encode * inst , unsigned int line_len , const char * lbchars , size_t lbchars_len , int lbchars_dup , bool persistent )
230
230
{
231
231
inst -> _super .convert_op = (php_conv_convert_func ) php_conv_base64_encode_convert ;
232
232
inst -> _super .dtor = (php_conv_dtor_func ) php_conv_base64_encode_dtor ;
@@ -608,7 +608,7 @@ typedef struct _php_conv_qprint_encode {
608
608
unsigned int line_ccnt ;
609
609
unsigned int line_len ;
610
610
int lbchars_dup ;
611
- int persistent ;
611
+ bool persistent ;
612
612
unsigned int lb_ptr ;
613
613
unsigned int lb_cnt ;
614
614
} php_conv_qprint_encode ;
@@ -825,7 +825,7 @@ static php_conv_err_t php_conv_qprint_encode_convert(php_conv_qprint_encode *ins
825
825
#undef NEXT_CHAR
826
826
#undef CONSUME_CHAR
827
827
828
- static php_conv_err_t php_conv_qprint_encode_ctor (php_conv_qprint_encode * inst , unsigned int line_len , const char * lbchars , size_t lbchars_len , int lbchars_dup , int opts , int persistent )
828
+ static php_conv_err_t php_conv_qprint_encode_ctor (php_conv_qprint_encode * inst , unsigned int line_len , const char * lbchars , size_t lbchars_len , int lbchars_dup , int opts , bool persistent )
829
829
{
830
830
if (line_len < 4 && lbchars != NULL ) {
831
831
return PHP_CONV_ERR_TOO_BIG ;
@@ -857,7 +857,7 @@ typedef struct _php_conv_qprint_decode {
857
857
int scan_stat ;
858
858
unsigned int next_char ;
859
859
int lbchars_dup ;
860
- int persistent ;
860
+ bool persistent ;
861
861
unsigned int lb_ptr ;
862
862
unsigned int lb_cnt ;
863
863
} php_conv_qprint_decode ;
@@ -1039,7 +1039,7 @@ static php_conv_err_t php_conv_qprint_decode_convert(php_conv_qprint_decode *ins
1039
1039
1040
1040
return err ;
1041
1041
}
1042
- static php_conv_err_t php_conv_qprint_decode_ctor (php_conv_qprint_decode * inst , const char * lbchars , size_t lbchars_len , int lbchars_dup , int persistent )
1042
+ static php_conv_err_t php_conv_qprint_decode_ctor (php_conv_qprint_decode * inst , const char * lbchars , size_t lbchars_len , int lbchars_dup , bool persistent )
1043
1043
{
1044
1044
inst -> _super .convert_op = (php_conv_convert_func ) php_conv_qprint_decode_convert ;
1045
1045
inst -> _super .dtor = (php_conv_dtor_func ) php_conv_qprint_decode_dtor ;
@@ -1061,7 +1061,7 @@ static php_conv_err_t php_conv_qprint_decode_ctor(php_conv_qprint_decode *inst,
1061
1061
1062
1062
typedef struct _php_convert_filter {
1063
1063
php_conv * cd ;
1064
- int persistent ;
1064
+ bool persistent ;
1065
1065
char * filtername ;
1066
1066
char stub [128 ];
1067
1067
size_t stub_len ;
@@ -1072,7 +1072,7 @@ typedef struct _php_convert_filter {
1072
1072
#define PHP_CONV_QPRINT_ENCODE 3
1073
1073
#define PHP_CONV_QPRINT_DECODE 4
1074
1074
1075
- static php_conv_err_t php_conv_get_string_prop_ex (const HashTable * ht , char * * pretval , size_t * pretval_len , char * field_name , size_t field_name_len , int persistent )
1075
+ static php_conv_err_t php_conv_get_string_prop_ex (const HashTable * ht , char * * pretval , size_t * pretval_len , char * field_name , size_t field_name_len , bool persistent )
1076
1076
{
1077
1077
zval * tmpval ;
1078
1078
@@ -1149,7 +1149,7 @@ static php_conv_err_t php_conv_get_uint_prop_ex(const HashTable *ht, unsigned in
1149
1149
#define GET_BOOL_PROP (ht , var , fldname ) \
1150
1150
php_conv_get_bool_prop_ex(ht, &var, fldname, sizeof(fldname))
1151
1151
1152
- static php_conv * php_conv_open (int conv_mode , const HashTable * options , int persistent )
1152
+ static php_conv * php_conv_open (int conv_mode , const HashTable * options , bool persistent )
1153
1153
{
1154
1154
/* FIXME: I'll have to replace this ugly code by something neat
1155
1155
(factories?) in the near future. */
@@ -1281,7 +1281,7 @@ static php_conv *php_conv_open(int conv_mode, const HashTable *options, int pers
1281
1281
1282
1282
static zend_result php_convert_filter_ctor (php_convert_filter * inst ,
1283
1283
int conv_mode , HashTable * conv_opts ,
1284
- const char * filtername , int persistent )
1284
+ const char * filtername , bool persistent )
1285
1285
{
1286
1286
inst -> persistent = persistent ;
1287
1287
inst -> filtername = pestrdup (filtername , persistent );
@@ -1315,7 +1315,7 @@ static zend_result strfilter_convert_append_bucket(
1315
1315
php_stream * stream , php_stream_filter * filter ,
1316
1316
php_stream_bucket_brigade * buckets_out ,
1317
1317
const char * ps , size_t buf_len , size_t * consumed ,
1318
- int persistent )
1318
+ bool persistent )
1319
1319
{
1320
1320
php_conv_err_t err ;
1321
1321
php_stream_bucket * new_bucket ;
@@ -1607,7 +1607,7 @@ static const php_stream_filter_factory strfilter_convert_factory = {
1607
1607
typedef struct _php_consumed_filter_data {
1608
1608
size_t consumed ;
1609
1609
zend_off_t offset ;
1610
- uint8_t persistent ;
1610
+ bool persistent ;
1611
1611
} php_consumed_filter_data ;
1612
1612
1613
1613
static php_stream_filter_status_t consumed_filter_filter (
@@ -1698,7 +1698,7 @@ typedef enum _php_chunked_filter_state {
1698
1698
typedef struct _php_chunked_filter_data {
1699
1699
size_t chunk_size ;
1700
1700
php_chunked_filter_state state ;
1701
- int persistent ;
1701
+ bool persistent ;
1702
1702
} php_chunked_filter_data ;
1703
1703
1704
1704
static size_t php_dechunk (char * buf , size_t len , php_chunked_filter_data * data )
0 commit comments