From c5e4ca3b49d1d7bcf9509009ff34c72c5de5362d Mon Sep 17 00:00:00 2001 From: Jim Winstead Date: Tue, 29 Oct 2024 16:54:31 -0700 Subject: [PATCH 1/2] `php_uname()` now throws `ValueError` (fixes #3968) --- reference/info/functions/php-uname.xml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/reference/info/functions/php-uname.xml b/reference/info/functions/php-uname.xml index 204aceaf7b2f..ce4eab41889e 100644 --- a/reference/info/functions/php-uname.xml +++ b/reference/info/functions/php-uname.xml @@ -89,6 +89,29 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.4.0 + + Throws a ValueError when an invalid + mode is specified. + + + + + + + &reftitle.examples; From 60d73d3b05ede5dc2711d132b692444bdae915e6 Mon Sep 17 00:00:00 2001 From: Jim Winstead Date: Tue, 29 Oct 2024 17:19:39 -0700 Subject: [PATCH 2/2] Be even more explicit about what 'a' means --- reference/info/functions/php-uname.xml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/reference/info/functions/php-uname.xml b/reference/info/functions/php-uname.xml index ce4eab41889e..88f39d0bd207 100644 --- a/reference/info/functions/php-uname.xml +++ b/reference/info/functions/php-uname.xml @@ -40,10 +40,18 @@ information is returned: - - 'a': This is the default. Contains all modes in - the sequence "s n r v m". - + + 'a': This is the default. Returns the same + information as the individual modes + + 's' + 'n' + 'r' + 'v' + 'm' + + separated by spaces. +