1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

www/pecl-http: Unbreak for php84

This commit is contained in:
Muhammad Moinur Rahman 2024-08-03 19:38:35 +02:00
parent 5c8fed7b1d
commit 20b76c543e
No known key found for this signature in database
GPG Key ID: BDB9B5A617C0BC91
3 changed files with 28 additions and 1 deletions

View File

@ -21,7 +21,6 @@ RUN_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/raphf.so:devel/pecl-raphf2@${PH
USES= php:build,pecl
USE_PHP= iconv:build zlib:build
IGNORE_WITH_PHP= 84
CONFIGURE_SHELL= ${LOCALBASE}/bin/bash

View File

@ -0,0 +1,14 @@
--- src/php_http_message_body.c.orig 2024-08-03 15:37:59 UTC
+++ src/php_http_message_body.c
@@ -12,7 +12,11 @@
#include "php_http_api.h"
+#if PHP_VERSION_ID <= 80300
#include "ext/standard/php_lcg.h"
+#else
+#include "ext/random/php_random.h"
+#endif
#define BOUNDARY_OPEN(body) \
do {\

View File

@ -0,0 +1,14 @@
--- src/php_http_misc.c.orig 2024-08-03 15:35:31 UTC
+++ src/php_http_misc.c
@@ -12,7 +12,11 @@
#include "php_http_api.h"
+#if PHP_VERSION_ID <= 80300
#include "ext/standard/php_lcg.h"
+#else
+#include "ext/random/php_random.h"
+#endif
#include "zend_exceptions.h"
/* SLEEP */