We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23b8d64 commit 53df3aeCopy full SHA for 53df3ae
ext/curl/interface.c
@@ -1540,7 +1540,7 @@ static inline zend_result build_mime_structure_from_hash(php_curl *ch, zval *zpo
1540
if (Z_TYPE_P(current) == IS_ARRAY) {
1541
zval *current_element;
1542
1543
- ZEND_HASH_FOREACH_VAL(HASH_OF(current), current_element) {
+ ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(current), current_element) {
1544
add_simple_field(mime, string_key, current_element);
1545
} ZEND_HASH_FOREACH_END();
1546
@@ -2186,7 +2186,7 @@ static zend_result _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue
2186
2187
case CURLOPT_POSTFIELDS:
2188
if (Z_TYPE_P(zvalue) == IS_ARRAY) {
2189
- if (zend_hash_num_elements(HASH_OF(zvalue)) == 0) {
+ if (zend_hash_num_elements(Z_ARRVAL_P(zvalue)) == 0) {
2190
/* no need to build the mime structure for empty hashtables;
2191
also works around https://github.com/curl/curl/issues/6455 */
2192
curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDS, "");
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments