is_readable
laravel/octane
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Tells whether a file exists and is readable
is_readable
(
string $filename
):
bool
$process
=
Process
::
fromShellCommandline
(
$command
,
null
,
null
,
null
,
null
);
if (
'\\'
!==
DIRECTORY_SEPARATOR
&&
file_exists
(
'/dev/tty'
) &&
is_readable
(
'/dev/tty'
)) {
try {
$process
->
setTty
(
true
);
} catch (
RuntimeException $e
) {
src/Commands/Concerns/InstallsRoadRunnerDependencies.php
public function
read
(): array
{
$state
=
is_readable
(
$this
->
path
)
?
json_decode
(
file_get_contents
(
$this
->
path
),
true
)
: [];
src/RoadRunner/ServerStateFile.php
public function
read
(): array
{
$state
=
is_readable
(
$this
->
path
)
?
json_decode
(
file_get_contents
(
$this
->
path
),
true
)
: [];
src/Swoole/ServerStateFile.php