prepare 2.0.9

* Fix PHP-8.3 deprecations
* Fix PHP-8.4 compatibility
This commit is contained in:
Michael Wallner
2024-10-07 20:52:51 +02:00
parent c0ecf3d275
commit b4dfa9459e
3 changed files with 35 additions and 3 deletions

View File

@@ -2,6 +2,10 @@ language: php
php:
- 7.0
- 8.0
- 8.1
- 8.2
- 8.3
- nightly
notifications:

View File

@@ -47,9 +47,9 @@ Requirements: ext/hash (now a part of PHP core)
<email>mike@php.net</email>
<active>yes</active>
</lead>
<date>2022-04-21</date>
<date>2022-10-07</date>
<version>
<release>2.0.8</release>
<release>2.0.9</release>
<api>2.0</api>
</version>
<stability>
@@ -205,6 +205,24 @@ Requirements: ext/hash (now a part of PHP core)
</notes>
</release>
<release>
<date>2022-04-21</date>
<version>
<release>2.0.8</release>
<api>2.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
<notes>
<![CDATA[
* Fix sporadic segfault in checkOAuthRequest
]]>
</notes>
</release>
<release>
<date>2020-09-18</date>
<version>

View File

@@ -38,6 +38,9 @@
#include "ext/standard/php_smart_string.h"
#include "ext/standard/info.h"
#include "ext/standard/php_string.h"
#if PHP_VERSION_ID > 80200
#define php_strtolower(s, l) zend_str_tolower(s, l)
#endif
#include "ext/standard/php_versioning.h"
#include "ext/standard/url.h"
#include "php_variables.h"
@@ -48,6 +51,13 @@
#include "ext/standard/base64.h"
#include "ext/pcre/php_pcre.h"
#include "php_network.h"
#if PHP_VERSION_ID >= 80300
#include "ext/random/php_random.h"
#define php_rand() php_mt_rand()
#else
#include "ext/standard/php_lcg.h"
#include "ext/standard/php_rand.h"
#endif
#if PHP_VERSION_ID >= 80200
#include "zend_attributes.h"
@@ -59,7 +69,7 @@
curl_formfree(f);
#endif
#define PHP_OAUTH_VERSION 2.0.8
#define PHP_OAUTH_VERSION 2.0.9
#define __stringify_1(x) #x
#define __stringify(x) __stringify_1(x)