Skip to content

Commit f33755e

Browse files
committed
Released 2.0.11
1 parent a528c9f commit f33755e

4 files changed

Lines changed: 128 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Changelog
2+
3+
## 2.0.11 - 2026-04-06
4+
5+
* Fix segfault when OAuthProvider callback handler throws an exception (issue #27)
6+
* Replace deprecated cURL `curl_formadd()` API with MIME API for multipart form uploads (issue #37)
7+
* Fix double free in OAuth destructor for `headers_in` and `headers_out`
8+
* Fix dangling pointers in multipart file/param storage by copying strings
9+
* Fix invalid free of shifted multipart param pointers
10+
* Fix memory leak in OAuthProvider auth header parsing
11+
* Fix memory leak in OAuthProvider callback registration on invalid callback type
12+
* Add multipart array cleanup in destructor for exception safety
13+
* Add GitHub Actions CI for PHP 8.1-8.5
14+
15+
## 2.0.10 - 2025-10-09
16+
17+
* Fix PHP 8.5 compatibility
18+
19+
## 2.0.9 - 2024-10-08
20+
21+
* Fix PHP 8.3 deprecations
22+
* Fix PHP 8.4 compatibility
23+
24+
## 2.0.8 - 2022-04-21
25+
26+
* Fix sporadic segfault in checkOAuthRequest
27+
28+
## 2.0.7 - 2020-09-18
29+
30+
* PHP 8 compatibility
31+
32+
## 2.0.6 - 2020-09-09
33+
34+
* Fix github issue #14 (Fixes for 7.3/7.4 and opcache)
35+
* Fix PHP 7.4 compatibility of object handler
36+
* Fix memory leaks in OAuthProvider
37+
* Fix crash in OAuthProvider handler registration methods due to unconditional addref
38+
* Fix crash in OAuth::fetch() due to modifying hash tables with a refcount>1
39+
40+
## 2.0.5 - 2020-02-06
41+
42+
* Fix config.w32 (cmb)
43+
* Fix 7.3 segfault (rlerdorf)
44+
* Replace uint/uint32_t, ulong/zend_ulong (Jan-E)
45+
* Handle cases where a passed in array might be a const (keyurdg)
46+
* Fix configure for recent cURL versions (cmb)
47+
* Bug #76722 cURL library headers not recognized on Debian 9 (js361014)
48+
49+
## 2.0.4 - 2019-12-02
50+
51+
* Fix php_pcre_match_impl call in 7.4+ (Remi)
52+
53+
## 2.0.3 - 2018-09-30
54+
55+
* Use _ex versions to avoid SIGABRT during use of hash functions in 7.2+ (Derick Rethans)
56+
57+
## 2.0.2 - 2018-06-28
58+
59+
* Fix bug #74163: Segfault in oauth_compare_value
60+
* Fix bug #73434: Null byte at end of array keys in getLastResponseInfo
61+
* Fix compatibility with PHP 7.3
62+
63+
## 2.0.1 - 2016-03-11
64+
65+
* Fix multiple segfaults (kgovande, rlerdorf)
66+
67+
## 2.0.0 - 2016-01-02
68+
69+
* PHP 7 Support
70+
* Bug #67658: configure does not detect missing pcre.h
71+
* Bug #67665: update fetch to accept 20X HTTP ranges
72+
* Bug #67883: check SERVER[REDIRECT_HTTP_AUTHORIZATION] for the Authorization header

composer.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "php/pecl-oauth",
3+
"type": "php-ext",
4+
"description": "OAuth 1.0 consumer and provider extension",
5+
"license": "BSD-3-Clause",
6+
"require": {
7+
"php": ">=7.1.0",
8+
"ext-hash": "*"
9+
},
10+
"php-ext": {
11+
"extension-name": "oauth",
12+
"configure-options": [
13+
{
14+
"name": "enable-oauth",
15+
"description": "Include oauth support"
16+
},
17+
{
18+
"name": "without-curl",
19+
"description": "Ignore presence of cURL and disable it"
20+
}
21+
]
22+
}
23+
}

package.xml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Requirements: ext/hash (now a part of PHP core)
4747
<email>mike@php.net</email>
4848
<active>yes</active>
4949
</lead>
50-
<date>2025-10-09</date>
50+
<date>2026-04-06</date>
5151
<version>
52-
<release>2.0.10</release>
52+
<release>2.0.11</release>
5353
<api>2.0</api>
5454
</version>
5555
<stability>
@@ -59,11 +59,21 @@ Requirements: ext/hash (now a part of PHP core)
5959
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
6060
<notes>
6161
<![CDATA[
62-
* Fix PHP-8.5 compatibility
62+
* Fix segfault when OAuthProvider callback throws an exception (#27)
63+
* Replace deprecated cURL curl_formadd() API with MIME API (#37)
64+
* Fix double free in destructor for headers_in/headers_out
65+
* Fix dangling pointers in multipart file/param storage
66+
* Fix invalid free of shifted multipart param pointers
67+
* Fix memory leak in provider auth header parsing
68+
* Fix memory leak in provider callback registration
69+
* Add GitHub Actions CI
70+
* Add PIE support (composer.json)
6371
]]>
6472
</notes>
6573
<contents>
6674
<dir name="/">
75+
<file name="CHANGELOG.md" role="doc" />
76+
<file name="composer.json" role="src" />
6777
<file name="config.m4" role="src" />
6878
<file name="config.w32" role="src" />
6979
<file name="oauth.c" role="src" />
@@ -151,6 +161,7 @@ Requirements: ext/hash (now a part of PHP core)
151161
<file name="oauthprovider_006.phpt" role="test" />
152162
<file name="oauthprovider_007.phpt" role="test" />
153163
<file name="oauthprovider_008.phpt" role="test" />
164+
<file name="oauthprovider_009.phpt" role="test" />
154165
<file name="oauth_curl_debug_handler.phpt" role="test" />
155166
<file name="oauth_reqtoken.phpt" role="test" />
156167
<file name="oauth_sbs.phpt" role="test" />
@@ -187,6 +198,24 @@ Requirements: ext/hash (now a part of PHP core)
187198
</extsrcrelease>
188199
<changelog>
189200

201+
<release>
202+
<date>2025-10-09</date>
203+
<version>
204+
<release>2.0.10</release>
205+
<api>2.0</api>
206+
</version>
207+
<stability>
208+
<release>stable</release>
209+
<api>stable</api>
210+
</stability>
211+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
212+
<notes>
213+
<![CDATA[
214+
* Fix PHP-8.5 compatibility
215+
]]>
216+
</notes>
217+
</release>
218+
190219
<release>
191220
<date>2024-10-08</date>
192221
<version>

php_oauth.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
curl_formfree(f);
7474
#endif
7575

76-
#define PHP_OAUTH_VERSION 2.0.10
76+
#define PHP_OAUTH_VERSION 2.0.11
7777

7878
#define __stringify_1(x) #x
7979
#define __stringify(x) __stringify_1(x)

0 commit comments

Comments
 (0)