Skip to content

Commit

Permalink
Fix check implementation of new posix functions
Browse files Browse the repository at this point in the history
  • Loading branch information
vasa-c committed Jan 20, 2024
1 parent f576f86 commit 22b93b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/RealPosix.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ public function ctermid(): string

public function eaccess(string $filename, int $flags = PosixConstants::F_OK): bool
{
$this->checkImplementation(__FUNCTION__);
return $this->runMethod(__FUNCTION__, [$filename, $flags]);
}

public function fpathconf(mixed $fileDescription, int $name): int
{
$this->checkImplementation(__FUNCTION__);
return $this->runMethod(__FUNCTION__, [$fileDescription, $name], false);
}

Expand Down Expand Up @@ -148,6 +150,7 @@ public function mknod(string $filename, int $flags, int $major = 0, int $minor =

public function pathconf(string $path, int $name): int
{
$this->checkImplementation(__FUNCTION__);
return $this->runMethod(__FUNCTION__, [$path, $name], false);
}

Expand Down Expand Up @@ -193,6 +196,7 @@ public function strerror(int $code): string

public function sysconf(int $confId): int
{
$this->checkImplementation(__FUNCTION__);
return (int)$this->runMethod(__FUNCTION__, [$confId]);
}

Expand Down

0 comments on commit 22b93b9

Please sign in to comment.