Skip to content

Commit f524860

Browse files
authored
Merge pull request #43 from php/release-2.0.13
Prepare 2.0.13 release — PHP 8.6 compatibility
2 parents 5fe5021 + d2d3223 commit f524860

4 files changed

Lines changed: 60 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
os: [ubuntu-latest]
19-
version: ['8.1', '8.2', '8.3', '8.4', '8.5']
19+
version: ['8.1', '8.2', '8.3', '8.4', '8.5', '8.6']
2020
steps:
2121
- name: Setup PHP
2222
uses: shivammathur/setup-php@v2

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
# Changelog
22

3+
## 2.0.13 - 2026-06-17
4+
5+
* Fix build on PHP 8.6+ — replace `XtOffsetOf` with `offsetof` (issue #42)
6+
* Add PHP 8.6 to CI matrix
7+
38
## 2.0.12 - 2026-04-07
49

10+
* Add PIE support (composer.json, package name pecl/oauth)
11+
* Drop .gitattributes export-ignore rules (issue #41) — preserves full source tree in GitHub archives for distro packagers
12+
13+
## 2.0.11 - 2026-04-06
14+
515
* Fix segfault when OAuthProvider callback handler throws an exception (issue #27)
616
* Replace deprecated cURL `curl_formadd()` API with MIME API for multipart form uploads (issue #37)
717
* Fix double free in OAuth destructor for `headers_in` and `headers_out`
@@ -11,7 +21,6 @@
1121
* Fix memory leak in OAuthProvider callback registration on invalid callback type
1222
* Add multipart array cleanup in destructor for exception safety
1323
* Add GitHub Actions CI for PHP 8.1-8.5
14-
* Add PIE support (composer.json, package name pecl/oauth)
1524

1625
## 2.0.10 - 2025-10-09
1726

package.xml

Lines changed: 48 additions & 11 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>2026-04-07</date>
50+
<date>2026-06-17</date>
5151
<version>
52-
<release>2.0.12</release>
52+
<release>2.0.13</release>
5353
<api>2.0</api>
5454
</version>
5555
<stability>
@@ -59,15 +59,8 @@ 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 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, package name pecl/oauth)
62+
* Fix build on PHP 8.6+ — replace XtOffsetOf with offsetof (#42)
63+
* Add PHP 8.6 to CI matrix
7164
]]>
7265
</notes>
7366
<contents>
@@ -198,6 +191,50 @@ Requirements: ext/hash (now a part of PHP core)
198191
</extsrcrelease>
199192
<changelog>
200193

194+
<release>
195+
<date>2026-04-07</date>
196+
<version>
197+
<release>2.0.12</release>
198+
<api>2.0</api>
199+
</version>
200+
<stability>
201+
<release>stable</release>
202+
<api>stable</api>
203+
</stability>
204+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
205+
<notes>
206+
<![CDATA[
207+
* Add PIE support (composer.json, package name pecl/oauth)
208+
* Drop .gitattributes export-ignore rules (#41) — preserves full source tree in archives for distro packagers
209+
]]>
210+
</notes>
211+
</release>
212+
213+
<release>
214+
<date>2026-04-06</date>
215+
<version>
216+
<release>2.0.11</release>
217+
<api>2.0</api>
218+
</version>
219+
<stability>
220+
<release>stable</release>
221+
<api>stable</api>
222+
</stability>
223+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
224+
<notes>
225+
<![CDATA[
226+
* Fix segfault when OAuthProvider callback throws an exception (#27)
227+
* Replace deprecated cURL curl_formadd() API with MIME API (#37)
228+
* Fix double free in destructor for headers_in/headers_out
229+
* Fix dangling pointers in multipart file/param storage
230+
* Fix invalid free of shifted multipart param pointers
231+
* Fix memory leak in provider auth header parsing
232+
* Fix memory leak in provider callback registration
233+
* Add GitHub Actions CI
234+
]]>
235+
</notes>
236+
</release>
237+
201238
<release>
202239
<date>2025-10-09</date>
203240
<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.12
76+
#define PHP_OAUTH_VERSION 2.0.13
7777

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

0 commit comments

Comments
 (0)