com php-src: Merge branch 'PHP-5.6' into PHP-7.0: ext/curl/interface.c main/php_version.h
| From: | Xinchen Hui | Date: | Fri, 05 Feb 2016 11:51:33 +0000 |
| Subject: | com php-src: Merge branch 'PHP-5.6' into PHP-7.0: ext/curl/interface.c main/php_version.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-90955@lists.php.net to get a copy of this message | ||
Commit: 095096c7ab2be3f6506bcd5429252b9abdf2138a
Author: Xinchen Hui <laruence@gmail.com> Fri, 5 Feb 2016 19:51:33 +0800
Parents: 3311f8e8403e8209003d94576ac4a1c17447e709 5fdfab743d964bb13602effc9efcd6f747e2f58c
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=095096c7ab2be3f6506bcd5429252b9abdf2138a
Log:
Merge branch 'PHP-5.6' into PHP-7.0
Conflicts:
ext/curl/interface.c
Changed paths:
MM ext/curl/interface.c
MM main/php_version.h
Diff:
diff --cc ext/curl/interface.c
index bd611ce,d9aab75..1cd22a8
--- 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 4096d9d,e306c0a..d48ab24
--- 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