From: Xinchen Hui Date: Fri, 5 Feb 2016 11:51:33 +0000 (+0800) Subject: Merge branch 'PHP-5.6' into PHP-7.0 X-Git-Tag: php-7.0.4RC1~38^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=095096c7ab2be3f6506bcd5429252b9abdf2138a;p=php Merge branch 'PHP-5.6' into PHP-7.0 Conflicts: ext/curl/interface.c --- 095096c7ab2be3f6506bcd5429252b9abdf2138a diff --cc ext/curl/interface.c index bd611ce42f,d9aab7541c..1cd22a8acf --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@@ -2464,18 -2530,25 +2464,22 @@@ static int _php_curl_setopt(php_curl *c return FAILURE; } - for (zend_hash_internal_pointer_reset(ph); - zend_hash_get_current_data(ph, (void **) ¤t) == SUCCESS; - zend_hash_move_forward(ph) - ) { - SEPARATE_ZVAL(current); - convert_to_string_ex(current); - - slist = curl_slist_append(slist, Z_STRVAL_PP(current)); + ZEND_HASH_FOREACH_VAL(ph, current) { + ZVAL_DEREF(current); + val = zval_get_string(current); + slist = curl_slist_append(slist, ZSTR_VAL(val)); + zend_string_release(val); if (!slist) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not build curl_slist"); + php_error_docref(NULL, E_WARNING, "Could not build curl_slist"); return 1; } - } + } ZEND_HASH_FOREACH_END(); - zend_hash_index_update_ptr(ch->to_free->slist, option, slist); - if (Z_REFCOUNT_P(ch->clone) <= 1) { - zend_hash_index_update(ch->to_free->slist, (ulong) option, &slist, sizeof(struct curl_slist *), NULL); ++ if ((*ch->clone) == 1) { ++ zend_hash_index_update_ptr(ch->to_free->slist, option, slist); + } else { - zend_hash_next_index_insert(ch->to_free->slist, &slist, sizeof(struct curl_slist *), NULL); ++ zend_hash_next_index_insert_ptr(ch->to_free->slist, slist); + } error = curl_easy_setopt(ch->cp, option, slist); diff --cc main/php_version.h index 4096d9d50c,e306c0a566..d48ab24141 --- a/main/php_version.h +++ b/main/php_version.h @@@ -1,8 -1,8 +1,8 @@@ /* automatically generated by configure */ /* edit configure.in to change version number */ -#define PHP_MAJOR_VERSION 5 -#define PHP_MINOR_VERSION 6 -#define PHP_RELEASE_VERSION 19 +#define PHP_MAJOR_VERSION 7 +#define PHP_MINOR_VERSION 0 - #define PHP_RELEASE_VERSION 4 ++#define PHP_RELEASE_VERSION 0 #define PHP_EXTRA_VERSION "-dev" - #define PHP_VERSION "7.0.4-dev" - #define PHP_VERSION_ID 70004 -#define PHP_VERSION "5.6.19-dev" -#define PHP_VERSION_ID 50619 ++#define PHP_VERSION "7.0.0-dev" ++#define PHP_VERSION_ID 70000