mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
net/pecl-oauth2: Fix build with PHP 8.3 and 8.4
The previous patch was effective only with PHP 8.4.
This commit is contained in:
parent
350560bda4
commit
3ecf245bfa
@ -2,6 +2,10 @@ PORTNAME= oauth
|
||||
PORTVERSION= 2.0.7
|
||||
CATEGORIES= net pear
|
||||
|
||||
# https://github.com/php/pecl-web_services-oauth/pull/30
|
||||
PATCH_SITES= https://github.com/php/pecl-web_services-oauth/commit/
|
||||
PATCHFILES= e7f262becf3feb65c8195fff4591d9dbd8acbace.patch:-p1
|
||||
|
||||
MAINTAINER= dbaio@FreeBSD.org
|
||||
COMMENT= Php interface to the OAuth Protocol
|
||||
WWW= https://pecl.php.net/package/oauth
|
||||
|
@ -1,3 +1,5 @@
|
||||
TIMESTAMP = 1601204295
|
||||
TIMESTAMP = 1724621593
|
||||
SHA256 (PECL/oauth-2.0.7.tgz) = d46f59072f1ade65cf4c4353b7ecf5546d1c56cad602152cb4ba72abb1aa5eec
|
||||
SIZE (PECL/oauth-2.0.7.tgz) = 78926
|
||||
SHA256 (PECL/e7f262becf3feb65c8195fff4591d9dbd8acbace.patch) = 73274160ae8d87f022c70796760e7d4211fb4b3dbb02d9930f2d7727350b4853
|
||||
SIZE (PECL/e7f262becf3feb65c8195fff4591d9dbd8acbace.patch) = 2283
|
||||
|
@ -1,22 +0,0 @@
|
||||
--- php_oauth.h.orig 2024-08-03 14:03:00 UTC
|
||||
+++ php_oauth.h
|
||||
@@ -29,7 +29,11 @@
|
||||
#include "php_main.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/php_string.h"
|
||||
+#if PHP_VERSION_ID <= 80300
|
||||
#include "ext/standard/php_rand.h"
|
||||
+#else
|
||||
+#include "ext/random/php_random.h"
|
||||
+#endif
|
||||
#include "ext/standard/php_smart_string.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "ext/standard/php_string.h"
|
||||
@@ -41,7 +45,6 @@
|
||||
#include "php_globals.h"
|
||||
#include "ext/standard/file.h"
|
||||
#include "ext/standard/base64.h"
|
||||
-#include "ext/standard/php_lcg.h"
|
||||
#include "ext/pcre/php_pcre.h"
|
||||
#include "php_network.h"
|
||||
|
@ -1,12 +0,0 @@
|
||||
--- provider.c.orig 2024-08-03 14:10:13 UTC
|
||||
+++ provider.c
|
||||
@@ -236,7 +236,9 @@ static int oauth_provider_parse_auth_header(php_oauth_
|
||||
&return_value,
|
||||
&subpats,
|
||||
1, /* global */
|
||||
+#if PHP_VERSION_ID <= 80300
|
||||
1, /* use flags */
|
||||
+#endif
|
||||
2, /* PREG_SET_ORDER */
|
||||
0
|
||||
);
|
Loading…
Reference in New Issue
Block a user