Skip to content

Commit

Permalink
php_uname('v') to return complete OS version string
Browse files Browse the repository at this point in the history
~ `RuntimeInformation.OSDescription`
was returning `0` before
  • Loading branch information
jakubmisek committed Mar 2, 2022
1 parent 6b22f74 commit 8041b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Peachpie.Library/Miscellaneous.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public static string php_uname(string mode = "a")
if (machine == "x86") machine = "i586"; // TODO

release = "0"; // String.Concat(Environment.OSVersion.Version.Major, ".", Environment.OSVersion.Version.Minor);
version = "0"; // String.Concat("build ", Environment.OSVersion.Version.Build);
version = RuntimeInformation.OSDescription; // String.Concat("build ", Environment.OSVersion.Version.Build);

//
if (!string.IsNullOrEmpty(mode))
Expand Down

0 comments on commit 8041b35

Please sign in to comment.