[php-src] Issue #19931: BC break: php_uname("i") throws on PHP 8.4, works fine on 8.3

From: Date: Tue, 23 Sep 2025 11:52:05 +0000
Subject: [php-src] Issue #19931: BC break: php_uname("i") throws on PHP 8.4, works fine on 8.3
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-250891@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/19931 Author: dktapps ### Description The following code: ```php <?php var_dump(php_uname("i")); ``` Resulted in this output: ``` Fatal error: Uncaught ValueError: php_uname(): Argument #1 ($mode) must be one of "a", "m", "n", "r", "s", or "v" in /in/34ruV:3 Stack trace: #0 /in/34ruV(3): php_uname('i') #1 {main} thrown in /in/34ruV on line 3 Process exited with code 255. ``` But I expected this output instead: ``` string(79) "Linux php_shell 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64" ``` It also works as expected on Windows with 8.3: ``` string(56) "Windows NT DYLANS-PC 10.0 build 26100 (Windows 11) AMD64" ``` ### PHP Version ```plain PHP 8.4.12 (cli) (built: Sep 7 2025 21:40:54) (ZTS Visual C++ 2022 x64) Copyright (c) The PHP Group Zend Engine v4.4.12, Copyright (c) Zend Technologies with Zend OPcache v8.4.14-dev, Copyright (c), by Zend Technologies ``` ### Operating System Windows 11, Ubuntu 24.04

« previous php.bugs (#250891) next »