From: Dmitry Stogov Date: Tue, 3 Mar 2015 06:59:32 +0000 (+0300) Subject: Merge branch 'PHP-5.5' into PHP-5.6 X-Git-Tag: PRE_PHP7_EREG_MYSQL_REMOVALS~34^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26827a011186ebb0c0cbabe588e7717caf4d4327;p=php Merge branch 'PHP-5.5' into PHP-5.6 * PHP-5.5: Added type checks Fixed bug #67741 (auto_prepend_file messes up __LINE__) Check variable type before its usage as IS_ARRAY. Fixed a bug that header value is not terminated by '\0' when accessed through getenv(). --- 26827a011186ebb0c0cbabe588e7717caf4d4327 diff --cc ext/soap/php_http.c index 41b73514eb,90a2728fbf..2045162367 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@@ -804,10 -809,10 +809,11 @@@ try_again } /* Send cookies along with request */ - if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies"), (void **)&cookies) == SUCCESS) { + if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies"), (void **)&cookies) == SUCCESS && + Z_TYPE_PP(cookies) == IS_ARRAY) { zval **data; char *key; + uint key_len; int i, n; has_cookies = 1;