mirror of
https://github.com/php-win-ext/php-windows-builder.git
synced 2026-03-24 09:02:06 +01:00
Add patch for yar
This commit is contained in:
8
extension/BuildPhpExtension/patches/yar.ps1
Normal file
8
extension/BuildPhpExtension/patches/yar.ps1
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user