diff options
author | Pierre Joye <pierre.php@gmail.com> | 2014-05-13 08:11:44 +0200 |
---|---|---|
committer | Pierre Joye <pierre.php@gmail.com> | 2014-05-13 08:11:44 +0200 |
commit | c26d79c8541a2f20a2d92838b5f90b72ec239c8b (patch) | |
tree | c758a681b11339166848863c07f25c592dcc24e5 | |
parent | 1b89df4925d34b883013d3d857a6131457d39225 (diff) | |
download | php-git-c26d79c8541a2f20a2d92838b5f90b72ec239c8b.tar.gz |
hash keys now use actual string length without leading zero
-rw-r--r-- | ext/standard/proc_open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index 4185da9df6..3fa4ad19a3 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -469,14 +469,14 @@ PHP_FUNCTION(proc_open) #ifdef PHP_WIN32 if (other_options) { - zval *item = zend_hash_str_find(Z_ARRVAL_P(other_options), "suppress_errors", sizeof("suppress_errors")); + zval *item = zend_hash_str_find(Z_ARRVAL_P(other_options), "suppress_errors", sizeof("suppress_errors") - 1); if (item != NULL) { if (Z_TYPE_P(item) == IS_TRUE || ((Z_TYPE_P(item) == IS_LONG) && Z_LVAL_P(item))) { suppress_errors = 1; } } - item = zend_hash_str_find(Z_ARRVAL_P(other_options), "bypass_shell", sizeof("bypass_shell")); + item = zend_hash_str_find(Z_ARRVAL_P(other_options), "bypass_shell", sizeof("bypass_shell") - 1); if (item != NULL) { if (Z_TYPE_P(item) == IS_TRUE || ((Z_TYPE_P(item) == IS_LONG) && Z_LVAL_P(item))) { bypass_shell = 1; |