mirror of
https://github.com/php/php-src.git
synced 2025-01-10 13:03:54 +08:00
suppress_errors is used only on Win32, no need to look for it on other systems
This commit is contained in:
parent
3e5407b16d
commit
01bc25e4b6
@ -439,7 +439,9 @@ PHP_FUNCTION(proc_open)
|
||||
php_process_id_t child;
|
||||
struct php_process_handle *proc;
|
||||
int is_persistent = 0; /* TODO: ensure that persistent procs will work */
|
||||
#ifdef PHP_WIN32
|
||||
int suppress_errors = 0;
|
||||
#endif
|
||||
#if PHP_CAN_DO_PTS
|
||||
php_file_descriptor_t dev_ptmx = -1; /* master */
|
||||
php_file_descriptor_t slave_pty = -1;
|
||||
@ -451,6 +453,7 @@ PHP_FUNCTION(proc_open)
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
if (other_options) {
|
||||
zval **item;
|
||||
if (SUCCESS == zend_hash_find(Z_ARRVAL_P(other_options), "suppress_errors", sizeof("suppress_errors"), (void**)&item)) {
|
||||
@ -459,6 +462,7 @@ PHP_FUNCTION(proc_open)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (environment) {
|
||||
env = _php_array_to_envp(environment, is_persistent TSRMLS_CC);
|
||||
|
Loading…
Reference in New Issue
Block a user