You are here

public static function vfsStream::getCurrentUser in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStream.php \org\bovigo\vfs\vfsStream::getCurrentUser()

returns current user

If the system does not support posix_getuid() the current user will be root (0).

Return value

int

41 calls to vfsStream::getCurrentUser()
vfsStreamAbstractContent::__construct in vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamAbstractContent.php
constructor
vfsStreamAbstractContentTestCase::allPermissionsForGroup in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamAbstractContentTestCase.php
@test @group permissions @group bug_15
vfsStreamAbstractContentTestCase::allPermissionsForOther in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamAbstractContentTestCase.php
@test @group permissions @group bug_15
vfsStreamAbstractContentTestCase::allPermissionsForUser in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamAbstractContentTestCase.php
@test @group permissions @group bug_15
vfsStreamAbstractContentTestCase::executeAndWritePermissionsForGroup in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamAbstractContentTestCase.php
@test @group permissions @group bug_15

... See full list

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStream.php, line 375

Class

vfsStream
Some utility methods for vfsStream.

Namespace

org\bovigo\vfs

Code

public static function getCurrentUser() {
  return function_exists('posix_getuid') ? posix_getuid() : self::OWNER_ROOT;
}