From: Michael Wallner Date: Tue, 27 Aug 2024 13:09:34 +0000 (+0200) Subject: fix includes for PHP-master X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=62d6ead5b2baa151bc3cdd158a85677ff3ba4e5e;p=m6w6%2Fext-http fix includes for PHP-master --- diff --git a/src/php_http_message_body.c b/src/php_http_message_body.c index 8bde1a7..effb776 100644 --- a/src/php_http_message_body.c +++ b/src/php_http_message_body.c @@ -12,7 +12,11 @@ #include "php_http_api.h" -#include "ext/standard/php_lcg.h" +#if PHP_VERSION_ID >= 80300 +# include "ext/random/php_random.h" +#else +# include "ext/standard/php_lcg.h" +#endif #define BOUNDARY_OPEN(body) \ do {\ diff --git a/src/php_http_misc.c b/src/php_http_misc.c index 261387f..56795f3 100644 --- a/src/php_http_misc.c +++ b/src/php_http_misc.c @@ -12,7 +12,12 @@ #include "php_http_api.h" -#include "ext/standard/php_lcg.h" +#if PHP_VERSION_ID >= 80300 +# include "ext/random/php_random.h" +#else +# include "ext/standard/php_lcg.h" +#endif + #include "zend_exceptions.h" /* SLEEP */