is_writable
laravel/octane
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Tells whether the filename is writable
Alias
is_writeable
is_writable
(
string $filename
):
bool
public function
writeProcessId
(
int $masterProcessId
):
void
{
if (!
is_writable
(
$this
->
path
) && !
is_writable
(
dirname
(
$this
->
path
))) {
throw new
RuntimeException
(
'Unable to write to process ID file.'
);
}
src/RoadRunner/ServerStateFile.php
public function
writeState
(array
$newState
):
void
{
if (!
is_writable
(
$this
->
path
) && !
is_writable
(
dirname
(
$this
->
path
))) {
throw new
RuntimeException
(
'Unable to write to process ID file.'
);
}
src/RoadRunner/ServerStateFile.php
public function
delete
():
bool
{
if (
is_writable
(
$this
->
path
)) {
return
unlink
(
$this
->
path
);
}
src/RoadRunner/ServerStateFile.php
public function
writeProcessIds
(
int $masterProcessId
,
int $managerProcessId
):
void
{
if (!
is_writable
(
$this
->
path
) && !
is_writable
(
dirname
(
$this
->
path
))) {
throw new
RuntimeException
(
'Unable to write to process ID file.'
);
}
src/Swoole/ServerStateFile.php
public function
writeState
(array
$newState
):
void
{
if (!
is_writable
(
$this
->
path
) && !
is_writable
(
dirname
(
$this
->
path
))) {
throw new
RuntimeException
(
'Unable to write to process ID file.'
);
}
src/Swoole/ServerStateFile.php
public function
delete
():
bool
{
if (
is_writable
(
$this
->
path
)) {
return
unlink
(
$this
->
path
);
}
src/Swoole/ServerStateFile.php