From 74984d42a8b71fefc6f3400e0a569f778a0f101e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 9 Jul 2024 15:33:05 +0200 Subject: [PATCH] Fix header name for 8.4 --- src/php_http_message_body.c | 4 ++++ src/php_http_misc.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/php_http_message_body.c b/src/php_http_message_body.c index 8bde1a77..105e369c 100644 --- a/src/php_http_message_body.c +++ b/src/php_http_message_body.c @@ -12,7 +12,11 @@ #include "php_http_api.h" +#if PHP_VERSION_ID < 80400 #include "ext/standard/php_lcg.h" +#else +#include "ext/random/php_random.h" +#endif #define BOUNDARY_OPEN(body) \ do {\ diff --git a/src/php_http_misc.c b/src/php_http_misc.c index 261387f6..d5da37fd 100644 --- a/src/php_http_misc.c +++ b/src/php_http_misc.c @@ -12,7 +12,11 @@ #include "php_http_api.h" +#if PHP_VERSION_ID < 80400 #include "ext/standard/php_lcg.h" +#else +#include "ext/random/php_random.h" +#endif #include "zend_exceptions.h" /* SLEEP */