Skip to content

Commit 900ee57

Browse files
committed
Remove unnecessary HASH_OF uses in mbstring
1 parent 2c7be42 commit 900ee57

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/mbstring/mbstring.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3149,7 +3149,7 @@ MBSTRING_API HashTable *php_mb_convert_encoding_recursive(HashTable *input, cons
31493149
ZVAL_COPY(&entry_tmp, entry);
31503150
break;
31513151
case IS_ARRAY:
3152-
chash = php_mb_convert_encoding_recursive(HASH_OF(entry), _to_encoding, _from_encodings);
3152+
chash = php_mb_convert_encoding_recursive(Z_ARRVAL_P(entry), _to_encoding, _from_encodings);
31533153
if (chash) {
31543154
ZVAL_ARR(&entry_tmp, chash);
31553155
} else {
@@ -3248,7 +3248,7 @@ PHP_FUNCTION(mb_convert_encoding)
32483248
}
32493249
} else {
32503250
HashTable *tmp;
3251-
tmp = php_mb_convert_encoding_recursive(HASH_OF(input), arg_new, _from_encodings);
3251+
tmp = php_mb_convert_encoding_recursive(Z_ARRVAL_P(input), arg_new, _from_encodings);
32523252
RETURN_ARR(tmp);
32533253
}
32543254

@@ -4755,7 +4755,7 @@ MBSTRING_API int php_mb_check_encoding_recursive(HashTable *vars, const zend_str
47554755
}
47564756
break;
47574757
case IS_ARRAY:
4758-
if (!php_mb_check_encoding_recursive(HASH_OF(entry), enc)) {
4758+
if (!php_mb_check_encoding_recursive(Z_ARRVAL_P(entry), enc)) {
47594759
valid = 0;
47604760
break;
47614761
}
@@ -4811,7 +4811,7 @@ PHP_FUNCTION(mb_check_encoding)
48114811
}
48124812
break;
48134813
case IS_ARRAY:
4814-
if (!php_mb_check_encoding_recursive(HASH_OF(input), enc)) {
4814+
if (!php_mb_check_encoding_recursive(Z_ARRVAL_P(input), enc)) {
48154815
RETURN_FALSE;
48164816
}
48174817
break;

0 commit comments

Comments
 (0)