![]() |
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patch php-uname-fix-for-windows-10 for PHP options/info functions Bug #70530Patch version 2017-08-06 16:16 UTC Return to Bug #70530 | Download this patchThis patch is obsolete Obsoleted by patches: This patch renders other patches obsolete Obsolete patches:
Developer: gideaow@gmail.comfunction my_php_uname() { $uname = php_uname(); if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { if (preg_match('/(Windows 8(\.\d+)?)/i', $uname, $match) AND preg_match('/Windows NT 10/i', $_SERVER['HTTP_USER_AGENT'])) { $uname = str_replace($match[1], 'Windows 10', $uname); } } return $uname; } |
![]() All rights reserved. |
Last updated: Thu May 01 12:01:29 2025 UTC |