function vfsStream::getCurrentUser
returns current user
If the system does not support posix_getuid() the current user will be root (0).
Return value
int
12 calls to vfsStream::getCurrentUser()
- vfsStreamAbstractContent::__construct in vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamAbstractContent.php - constructor
- vfsStreamWrapper::createFile in vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamWrapper.php - creates a file at given path
- vfsStreamWrapper::dir_opendir in vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamWrapper.php - opens a directory
- vfsStreamWrapper::doPermChange in vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamWrapper.php - executes given permission change when necessary rights allow such a change
- vfsStreamWrapper::doUnlink in vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamWrapper.php - removes a path
File
-
vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStream.php, line 392
Class
- vfsStream
- Some utility methods for vfsStream.
Namespace
org\bovigo\vfsCode
public static function getCurrentUser() {
return function_exists('posix_getuid') ? posix_getuid() : self::OWNER_ROOT;
}