CurrentProcess
class CurrentProcess
Get information about the current process, ie the PHP interpreter.
Methods
static bool
isPrivileged()
Determine if the current process, ie the PHP interpreter, runs as root on UNIX systems or in elevated mode on Windows.
static string
getUsername()
Determine the username of the current process, ie the PHP interpreter.
Details
at line 17
static bool
isPrivileged()
Determine if the current process, ie the PHP interpreter, runs as root on UNIX systems or in elevated mode on Windows.
Cygwin processes are considered as Windows processes.
at line 39
static string
getUsername()
Determine the username of the current process, ie the PHP interpreter.