com php-src: hash keys now use actual string length without leading zero: ext/standard/proc_open.c

From: Date: Tue, 13 May 2014 06:11:44 +0000
Subject: com php-src: hash keys now use actual string length without leading zero: ext/standard/proc_open.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78351@lists.php.net to get a copy of this message
Commit: c26d79c8541a2f20a2d92838b5f90b72ec239c8b Author: Pierre Joye <pierre.php@gmail.com> Tue, 13 May 2014 08:11:44 +0200 Parents: 1b89df4925d34b883013d3d857a6131457d39225 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c26d79c8541a2f20a2d92838b5f90b72ec239c8b Log: hash keys now use actual string length without leading zero Changed paths: M ext/standard/proc_open.c Diff: diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index 4185da9..3fa4ad1 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;

« previous php.cvs (#78351) next »