From 0a5160cf674ff0192f485bac27a563b2e8f6bae7 Mon Sep 17 00:00:00 2001 From: henoheno Date: Sun, 26 Sep 2004 21:24:20 +0900 Subject: [PATCH] Warning: flock(): cannot represent a stream of type ZLIB as a File Descriptor --- plugin/dump.inc.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugin/dump.inc.php b/plugin/dump.inc.php index a3534f6..6948604 100644 --- a/plugin/dump.inc.php +++ b/plugin/dump.inc.php @@ -1,6 +1,6 @@ fp, LOCK_EX); fwrite($this->fp, $header, TARLIB_HDR_LEN); // Header fwrite($this->fp, $body, $size); // Body fwrite($this->fp, $this->dummydata, $fixsize); // Padding - flock($this->fp, LOCK_UN); } //////////////////////////////////////////////////////////// @@ -685,10 +683,8 @@ class tarlib if ($this->status == TARLIB_STATUS_CREATE) { // ¥Ð¥¤¥Ê¥ê¡¼¥¼¥í¤ò1024¥Ð¥¤¥È½ÐÎÏ - flock($this->fp, LOCK_EX); fwrite($this->fp, $this->dummydata, TARLIB_HDR_LEN); fwrite($this->fp, $this->dummydata, TARLIB_HDR_LEN); - flock($this->fp, LOCK_UN); // ¥Õ¥¡¥¤¥ë¤òÊĤ¸¤ë if ($this->arc_kind == ARCFILE_TAR_GZ) { -- 2.11.0