fix includes for PHP-master
authorMichael Wallner <mike@php.net>
Tue, 27 Aug 2024 13:09:34 +0000 (15:09 +0200)
committerMichael Wallner <mike@php.net>
Tue, 27 Aug 2024 13:09:34 +0000 (15:09 +0200)
src/php_http_message_body.c
src/php_http_misc.c

index 8bde1a770590cf75e1556ada6c50e97fafb6d241..effb776fc47049c535bbad8333626bb530f609c2 100644 (file)
 
 #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 {\
index 261387f6bd6ffbecb01377d2ef87efe7fd936431..56795f34618705ff7e27e5b1e298e5986c991bae 100644 (file)
 
 #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 */