Skip to content

Commit 5cd6a91

Browse files
alexdowadnikic
andauthored
Dereference references used in other_options parameter to proc_open
This fix courtesy of Nikita Popov. Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
1 parent 0c74bd2 commit 5cd6a91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/proc_open.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ static char *create_win_command_from_args(HashTable *args)
462462

463463
static int get_option(zval *other_options, char *option_name)
464464
{
465-
zval *item = zend_hash_str_find(Z_ARRVAL_P(other_options), option_name, strlen(option_name));
465+
zval *item = zend_hash_str_find_deref(Z_ARRVAL_P(other_options), option_name, strlen(option_name));
466466
if (item != NULL) {
467467
if (Z_TYPE_P(item) == IS_TRUE || ((Z_TYPE_P(item) == IS_LONG) && Z_LVAL_P(item))) {
468468
return 1;

0 commit comments

Comments
 (0)