Skip to content

Commit 17137d4

Browse files
committedSep 12, 2016
fix bug #73055
1 parent 3c7b514 commit 17137d4

File tree

3 files changed

+41
-3
lines changed

3 files changed

+41
-3
lines changed
 

‎.gitignore

+33
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,36 @@ lcov_data
4242
*.phar
4343
vendor/
4444
tests/helper/server.log
45+
php_http_api.h
46+
php_http_buffer.h
47+
php_http_client.h
48+
php_http_client_curl.h
49+
php_http_client_curl_event.h
50+
php_http_client_curl_user.h
51+
php_http_client_request.h
52+
php_http_client_response.h
53+
php_http_cookie.h
54+
php_http_curl.h
55+
php_http_encoding.h
56+
php_http_env.h
57+
php_http_env_request.h
58+
php_http_env_response.h
59+
php_http_etag.h
60+
php_http_exception.h
61+
php_http_filter.h
62+
php_http_header.h
63+
php_http_header_parser.h
64+
php_http_info.h
65+
php_http_message.h
66+
php_http_message_body.h
67+
php_http_message_parser.h
68+
php_http_misc.h
69+
php_http_negotiate.h
70+
php_http_object.h
71+
php_http_options.h
72+
php_http_params.h
73+
php_http_querystring.h
74+
php_http_response_codes.h
75+
php_http_url.h
76+
php_http_utf8.h
77+
php_http_version.h

‎package.xml

+7-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ https://mdref.m6w6.name/http
3131
<email>mike@php.net</email>
3232
<active>yes</active>
3333
</lead>
34-
<date>2016-09-07</date>
34+
<date>2016-09-12</date>
3535
<version>
36-
<release>2.6.0beta2</release>
36+
<release>2.6.0RC1</release>
3737
<api>2.6.0</api>
3838
</version>
3939
<stability>
@@ -69,6 +69,10 @@ https://mdref.m6w6.name/http
6969
Changes from beta1:
7070
* Fixed PHP-5.3 compatibility
7171
* Fixed recursive calls to the event loop dispatcher
72+
73+
Changes from beta2:
74+
* Fix bug #73055: crash in http\QueryString (Mike, @rc0r)
75+
* Fix HTTP/2 version parser for older libcurl versions (Mike)
7276
]]></notes>
7377
<contents>
7478
<dir name="/">
@@ -185,6 +189,7 @@ Changes from beta1:
185189
<file role="test" name="bug69313.phpt"/>
186190
<file role="test" name="bug69357.phpt"/>
187191
<file role="test" name="bug71719.phpt"/>
192+
<file role="test" name="bug73055.phpt"/>
188193
<file role="test" name="client001.phpt"/>
189194
<file role="test" name="client002.phpt"/>
190195
<file role="test" name="client003.phpt"/>

‎src/php_http_params.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ static void merge_param(HashTable *params, zval *zdata, zval ***current_param, z
470470
while (Z_TYPE_PP(zdata_ptr) == IS_ARRAY
471471
&& SUCCESS == zend_hash_get_current_data(Z_ARRVAL_PP(zdata_ptr), (void *) &test_ptr)
472472
) {
473-
if (Z_TYPE_PP(test_ptr) == IS_ARRAY) {
473+
if (Z_TYPE_PP(test_ptr) == IS_ARRAY && Z_TYPE_PP(ptr) == IS_ARRAY) {
474474

475475
/* now find key in ptr */
476476
if (HASH_KEY_IS_STRING == zend_hash_get_current_key_ex(Z_ARRVAL_PP(zdata_ptr), &hkey.str, &hkey.len, &hkey.num, hkey.dup, NULL)) {

0 commit comments

Comments
 (0)
Please sign in to comment.