From: Remi Collet Date: Tue, 9 Jul 2024 13:33:05 +0000 (+0200) Subject: Fix header name for 8.4 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=74984d42a8b71fefc6f3400e0a569f778a0f101e;p=m6w6%2Fext-http Fix header name for 8.4 --- diff --git a/src/php_http_message_body.c b/src/php_http_message_body.c index 8bde1a7..105e369 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 261387f..d5da37f 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 */