Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Apr 9, 2024
1 parent dec7e61 commit 4fff75c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions thirdparty/php/standard/proc_open.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ static void _php_free_envp(sw_php_process_env env) {

static void proc_co_rsrc_dtor(zend_resource *rsrc) {
sw_php_process_handle *proc = (sw_php_process_handle *) rsrc->ptr;
int i;
int wstatus = 0;

/* Close all handles to avoid a deadlock */
Expand Down Expand Up @@ -732,14 +731,17 @@ static zend_result set_proc_descriptor_from_array(
zend_string *zmode = NULL, *zfile = NULL;
zend_result retval = FAILURE;

#if 0
if (zend_string_equals_literal(ztype, "pipe")) {
/* Set descriptor to pipe */
zmode = get_string_parameter(descitem, 1, "mode parameter for 'pipe'");
if (zmode == NULL) {
goto finish;
}
retval = set_proc_descriptor_to_pipe(&descriptors[ndesc], zmode);
} else if (zend_string_equals_literal(ztype, "socket")) {
} else
#endif
if (zend_string_equals_literal(ztype, "socket") || zend_string_equals_literal(ztype, "pipe")) {
/* Set descriptor to socketpair */
retval = set_proc_descriptor_to_socket(&descriptors[ndesc]);
} else if (zend_string_equals(ztype, ZSTR_KNOWN(ZEND_STR_FILE))) {
Expand Down

0 comments on commit 4fff75c

Please sign in to comment.