Add patch for oauth

This commit is contained in:
Shivam Mathur
2024-10-10 21:50:19 +05:30
parent 9c3bf94ae3
commit 2e6c151ce8

View File

@@ -0,0 +1,2 @@
Set-Content config.w32 -Value (Get-Content config.w32 | Where-Object { $_ -notmatch 'zlib' })
(Get-Content config.w32) | ForEach-Object { $_.Replace('CHECK_LIB("normaliz.lib", "oauth", PHP_OAUTH)', 'CHECK_LIB("normaliz.lib", "oauth", PHP_OAUTH) && CHECK_LIB("zlib.lib;zlib_a.lib", "oauth", PHP_OAUTH) && CHECK_LIB("crypt32.lib", "oauth", PHP_OAUTH)') } | Set-Content config.w32