Phar::isBuffering() - Phar类
Phar::isBuffering()
(PHP 5 >= 5.3.0, PHP 7, PECL phar >= 1.0.0)
Used to determine whether Phar write operations are being buffered, or are flushing directly to disk
说明
publicPhar::isBuffering(void): boolThis method can be used to determine whether a Phar will save changes to disk immediately, or whether a call to Phar::stopBuffering() is needed to enable saving changes.
Phar write buffering is per-archive, buffering active for thefoo.pharPhar archive does not affect changes to thebar.pharPhar archive.
返回值
Returns TRUE
if the write operations are being buffer,FALSE
otherwise.
范例
A Phar::isBuffering() example
=2= =3=
以上例程会输出:
bool(false) bool(false) =2= bool(true) bool(false) =3= bool(false) bool(false)
参见
- Phar::startBuffering() Start buffering Phar write operations, do not modify the Phar object on disk
- Phar::stopBuffering() Stop buffering write requests to the Phar archive, and save changes to disk
鹏仔微信 15129739599 鹏仔QQ344225443 鹏仔前端 pjxi.com 共享博客 sharedbk.com
图片声明:本站部分配图来自网络。本站只作为美观性配图使用,无任何非法侵犯第三方意图,一切解释权归图片著作权方,本站不承担任何责任。如有恶意碰瓷者,必当奉陪到底严惩不贷!