@@ -74,7 +74,7 @@ static php_process_env _php_array_to_envp(zval *environment)
74
74
char * * ep ;
75
75
#endif
76
76
char * p ;
77
- size_t cnt , sizeenv = 0 ;
77
+ size_t sizeenv = 0 ;
78
78
HashTable * env_hash ; /* temporary PHP array used as helper */
79
79
80
80
memset (& env , 0 , sizeof (env ));
@@ -83,7 +83,7 @@ static php_process_env _php_array_to_envp(zval *environment)
83
83
return env ;
84
84
}
85
85
86
- cnt = zend_hash_num_elements (Z_ARRVAL_P (environment ));
86
+ uint32_t cnt = zend_hash_num_elements (Z_ARRVAL_P (environment ));
87
87
88
88
if (cnt < 1 ) {
89
89
#ifndef PHP_WIN32
@@ -794,7 +794,7 @@ static int set_proc_descriptor_from_array(zval *descitem, descriptorspec_item *d
794
794
}
795
795
796
796
retval = redirect_proc_descriptor (
797
- & descriptors [ndesc ], Z_LVAL_P (ztarget ), descriptors , ndesc , nindex );
797
+ & descriptors [ndesc ], ( int ) Z_LVAL_P (ztarget ), descriptors , ndesc , nindex );
798
798
} else if (zend_string_equals_literal (ztype , "null" )) {
799
799
/* Set descriptor to blackhole (discard all data written) */
800
800
retval = set_proc_descriptor_to_blackhole (& descriptors [ndesc ]);
@@ -829,7 +829,7 @@ static int set_proc_descriptor_from_resource(zval *resource, descriptorspec_item
829
829
}
830
830
831
831
#ifdef PHP_WIN32
832
- php_file_descriptor_t fd_t = (HANDLE )_get_osfhandle (fd );
832
+ php_file_descriptor_t fd_t = (php_file_descriptor_t )_get_osfhandle (fd );
833
833
#else
834
834
php_file_descriptor_t fd_t = fd ;
835
835
#endif
@@ -991,8 +991,8 @@ PHP_FUNCTION(proc_open)
991
991
goto exit_fail ;
992
992
}
993
993
} else if (Z_TYPE_P (descitem ) == IS_ARRAY ) {
994
- if (set_proc_descriptor_from_array (descitem , descriptors , ndesc , nindex , & pty_master_fd ,
995
- & pty_slave_fd ) == FAILURE ) {
994
+ if (set_proc_descriptor_from_array (descitem , descriptors , ndesc , ( int ) nindex ,
995
+ & pty_master_fd , & pty_slave_fd ) == FAILURE ) {
996
996
goto exit_fail ;
997
997
}
998
998
} else {
0 commit comments