Phar::isWritable

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 2.0.0)

Phar::isWritableInforma se o arquivo phar pode ser modificado

Descrição

public Phar::isWritable(): bool

Este método retorna true se phar.readonly for 0, e o arquivo phar atual no disco não for somente leitura.

Parâmetros

Sem parâmetros.

Valor Retornado

Retorna true se o arquivo phar puder ser modificado.

Veja Também

adicione uma nota

Notas Enviadas por Usuários (em inglês) 1 note

up
1
kristof dot coomans at telenet dot be
16 years ago
It might be not expected, but this function will return true if the file does not exist yet even if the directory is read-only. Tested on PHP 5.3.0 RC 1.

I have buffering on and when I call stopBuffering() then the "failed to open stream: Permission denied" PharException will be thrown.
To Top