@@ -361,7 +361,7 @@ PHP_FUNCTION(proc_get_status)
361
361
int wstatus ;
362
362
pid_t wait_pid ;
363
363
#endif
364
- int running = 1 , signaled = 0 , stopped = 0 ;
364
+ bool running = 1 , signaled = 0 , stopped = 0 ;
365
365
int exitcode = -1 , termsig = 0 , stopsig = 0 ;
366
366
367
367
ZEND_PARSE_PARAMETERS_START (1 , 1 )
@@ -546,7 +546,7 @@ static zend_string *create_win_command_from_args(HashTable *args)
546
546
547
547
/* Get a boolean option from the `other_options` array which can be passed to `proc_open`.
548
548
* (Currently, all options apply on Windows only.) */
549
- static int get_option (zval * other_options , char * opt_name )
549
+ static bool get_option (zval * other_options , char * opt_name )
550
550
{
551
551
HashTable * opt_ary = Z_ARRVAL_P (other_options );
552
552
zval * item = zend_hash_str_find_deref (opt_ary , opt_name , strlen (opt_name ));
@@ -1020,11 +1020,11 @@ PHP_FUNCTION(proc_open)
1020
1020
char cur_cwd [MAXPATHLEN ];
1021
1021
wchar_t * cmdw = NULL , * cwdw = NULL , * envpw = NULL ;
1022
1022
size_t cmdw_len ;
1023
- int suppress_errors = 0 ;
1024
- int bypass_shell = 0 ;
1025
- int blocking_pipes = 0 ;
1026
- int create_process_group = 0 ;
1027
- int create_new_console = 0 ;
1023
+ bool suppress_errors = 0 ;
1024
+ bool bypass_shell = 0 ;
1025
+ bool blocking_pipes = 0 ;
1026
+ bool create_process_group = 0 ;
1027
+ bool create_new_console = 0 ;
1028
1028
#else
1029
1029
char * * argv = NULL ;
1030
1030
#endif
0 commit comments