@@ -609,10 +609,10 @@ PHP_FUNCTION(gzfile)
609609 int flags = REPORT_ERRORS ;
610610 char buf [8192 ] = {0 };
611611 int i = 0 ;
612- zend_long use_include_path = 0 ;
612+ bool use_include_path = false ;
613613 php_stream * stream ;
614614
615- if (SUCCESS != zend_parse_parameters (ZEND_NUM_ARGS (), "p|l " , & filename , & filename_len , & use_include_path )) {
615+ if (SUCCESS != zend_parse_parameters (ZEND_NUM_ARGS (), "p|b " , & filename , & filename_len , & use_include_path )) {
616616 RETURN_THROWS ();
617617 }
618618
@@ -649,9 +649,9 @@ PHP_FUNCTION(gzopen)
649649 size_t filename_len , mode_len ;
650650 int flags = REPORT_ERRORS ;
651651 php_stream * stream ;
652- zend_long use_include_path = 0 ;
652+ bool use_include_path = false ;
653653
654- if (zend_parse_parameters (ZEND_NUM_ARGS (), "ps|l " , & filename , & filename_len , & mode , & mode_len , & use_include_path ) == FAILURE ) {
654+ if (zend_parse_parameters (ZEND_NUM_ARGS (), "ps|b " , & filename , & filename_len , & mode , & mode_len , & use_include_path ) == FAILURE ) {
655655 RETURN_THROWS ();
656656 }
657657
@@ -676,9 +676,9 @@ PHP_FUNCTION(readgzfile)
676676 int flags = REPORT_ERRORS ;
677677 php_stream * stream ;
678678 size_t size ;
679- zend_long use_include_path = 0 ;
679+ bool use_include_path = false ;
680680
681- if (zend_parse_parameters (ZEND_NUM_ARGS (), "p|l " , & filename , & filename_len , & use_include_path ) == FAILURE ) {
681+ if (zend_parse_parameters (ZEND_NUM_ARGS (), "p|b " , & filename , & filename_len , & use_include_path ) == FAILURE ) {
682682 RETURN_THROWS ();
683683 }
684684
0 commit comments