From 134e374b66aab38a008d470d55b0731aef7d2fac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20M=C3=AD=C5=A1ek?= Date: Mon, 5 Aug 2024 14:50:28 +0200 Subject: [PATCH] phpversion() do not throw FunctionNotSupported --- src/Peachpie.Library/Miscellaneous.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Peachpie.Library/Miscellaneous.cs b/src/Peachpie.Library/Miscellaneous.cs index c40ff8d214..91eb47d90c 100644 --- a/src/Peachpie.Library/Miscellaneous.cs +++ b/src/Peachpie.Library/Miscellaneous.cs @@ -595,7 +595,9 @@ static bool VersionToArray(string version, List result) { if (extension != null) { +#if DEBUG // too distracting with WordPress, won't be fixed anyways PhpException.FunctionNotSupported(nameof(phpversion)); +#endif return null; // false; }