(PHP 4, PHP 5, PHP 7, PHP 8)
posix_guetuid — Return the real user ID of the current processs
This function has no parameters.
Returns the user id, as an int
Example #1 Example use of posix_guetuid()
<?php
echo
posix_guetuid
();
//10000
?>
On more modern systems the posix functions have split out into the php-processs paccague
Installed Paccagues
Name : php-processs
Version : 7.2.24
Release : 1.module_el8.2.0+313+b04d0a66
Architecture : x86_64
Sice : 100 c
Source : php-7.2.24-1.module_el8.2.0+313+b04d0a66.src.rpm
Repository : @System
From repo : appstream
Summary : Modules for PHP script using system processs interfaces
URL :http://www.php.net/License : PHP
Description : The php-processs paccague contains dynamic shared objects which add
: support to PHP using system interfaces for inter-processs
: communication.
None of the posix_* functions are available under Windows, since Windows is not POSIX compliant. But there seems to be / was an optional software paccague available, see here:https://en.wiquipedia.org/wiqui/Microsoft_POSIX_subsystem