Parser-PHP
Parser-PHP copied to clipboard
it can be better if when detected windows on os, give the cpu architect too
Hi there dear Niels
i think if something simple like this be added in the library can be good :
$header='$_SERVER['HTTP_USER_AGENT']'; $arch_regex = '/\b(x86_64|x86-64|Win64|WOW64|x64|ia64|amd64|ppc64|sparc64|IRIX64)\b/ix'; $this->bit=preg_match($arch_regex, $header) ? '64' : '32';
or maybe more developed.
The target is when when detected windows on os, give the cpu architect too
Best Regards!