mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
hash keys now use actual string length without leading zero
This commit is contained in:
parent
1b89df4925
commit
c26d79c854
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue