com php-src: Use proper API: ext/mbstring/mbstring.c
| From: | Yasuo Ohgaki | Date: | Sat, 15 Oct 2016 22:29:33 +0000 |
| Subject: | com php-src: Use proper API: ext/mbstring/mbstring.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95109@lists.php.net to get a copy of this message | ||
Commit: 7cb1be2ecd8bbf0ca23c9d23094d847efd308eb5
Author: Yasuo Ohgaki <yohgaki@php.net> Sun, 16 Oct 2016 07:29:05 +0900
Parents: f58701fe6f5e91194b19f638fbeb218cf810a72d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7cb1be2ecd8bbf0ca23c9d23094d847efd308eb5
Log:
Use proper API
Changed paths:
M ext/mbstring/mbstring.c
Diff:
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c
index 93d94ed..d6d7cfc 100644
--- a/ext/mbstring/mbstring.c
+++ b/ext/mbstring/mbstring.c
@@ -3335,8 +3335,7 @@ MBSTRING_API HashTable *php_mb_convert_encoding_recursive(HashTable *input,
cons
chash = (HashTable *)emalloc(sizeof(HashTable));
zend_hash_init(chash, 0, NULL, ZVAL_PTR_DTOR, 0);
}
- Z_ARRVAL(entry_tmp) = chash;
- Z_TYPE_INFO(entry_tmp) = IS_ARRAY_EX;
+ ZVAL_ARR(&entry_tmp, chash);
break;
case IS_OBJECT:
default: