Регистрация Войти
Войти через VK Войти через FB Войти через Google Войти через Яндекс
Войти через VK Войти через FB Войти через Google Войти через Яндекс
Поиск по сайту
Phar::isWritable
(Unknown)
Phar::isWritable — Returns true if the phar archive can be modified
Описание
public bool Phar::isWritable ( void )This method returns TRUE if phar.readonly is 0, and the actual phar archive on disk is not read-only.
Список параметров
No parameters.
Возвращаемые значения
Returns TRUE if the phar archive can be modified
Смотрите также
- Phar::canWrite() - Returns whether phar extension supports writing and creating phars
- PharData::isWritable() - Returns true if the tar/zip archive can be modified
User Contributed Notes 1 note
0
kristof dot coomans at telenet dot be ¶4 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.
Описание класса phar, примеры использования класса phar.
Описание на ru2.php.netОписание на php.ru