diff --git a/extension/BuildPhpExtension/patches/yar.ps1 b/extension/BuildPhpExtension/patches/yar.ps1 new file mode 100644 index 0000000..dd89444 --- /dev/null +++ b/extension/BuildPhpExtension/patches/yar.ps1 @@ -0,0 +1,8 @@ +(Get-Content yar_request.c) | ForEach-Object { + $_ -replace 'if \(!BG\(mt_rand_is_seeded\)\) {', +'#if PHP_VERSION_ID < 80200 + if (!BG(mt_rand_is_seeded)) { +#else + if (!RANDOM_G(mt19937_seeded)) { +#endif' +} | Set-Content yar_request.c