@@ -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 ));
@@ -1024,11 +1024,11 @@ PHP_FUNCTION(proc_open)
1024
1024
char cur_cwd [MAXPATHLEN ];
1025
1025
wchar_t * cmdw = NULL , * cwdw = NULL , * envpw = NULL ;
1026
1026
size_t cmdw_len ;
1027
- int suppress_errors = 0 ;
1028
- int bypass_shell = 0 ;
1029
- int blocking_pipes = 0 ;
1030
- int create_process_group = 0 ;
1031
- int create_new_console = 0 ;
1027
+ bool suppress_errors = 0 ;
1028
+ bool bypass_shell = 0 ;
1029
+ bool blocking_pipes = 0 ;
1030
+ bool create_process_group = 0 ;
1031
+ bool create_new_console = 0 ;
1032
1032
#else
1033
1033
char * * argv = NULL ;
1034
1034
#endif
0 commit comments