Skip to content

Commit a602a97

Browse files
committed
FileMutator::url_stat() fixed implementation
1 parent 134bb93 commit a602a97

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Framework/FileMutator.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,10 @@ public function unlink($path)
197197

198198
public function url_stat($path, $flags)
199199
{
200-
return $this->native('fstat', $path, $flags);
200+
return $this->native(
201+
$flags & STREAM_URL_STAT_LINK ? 'lstat' : 'stat',
202+
$path
203+
);
201204
}
202205

203206

0 commit comments

Comments
 (0)