diff options
author | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-10-02 14:55:24 +0200 |
---|---|---|
committer | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-10-02 14:55:24 +0200 |
commit | 7e8500eea1e53b1de0e0f70400664afa442cd08d (patch) | |
tree | 4dd246a9b26f930fc7cbfef76116320dcbe77aaf /inc/Tar.class.php | |
parent | e3710957c6b7e12293805a15d0624be7c7054092 (diff) | |
download | rpg-7e8500eea1e53b1de0e0f70400664afa442cd08d.tar.gz rpg-7e8500eea1e53b1de0e0f70400664afa442cd08d.tar.bz2 |
PHPDocs and some improvements
Diffstat (limited to 'inc/Tar.class.php')
-rw-r--r-- | inc/Tar.class.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/inc/Tar.class.php b/inc/Tar.class.php index 04246846e..0dc7dace2 100644 --- a/inc/Tar.class.php +++ b/inc/Tar.class.php @@ -53,6 +53,7 @@ class Tar { protected $file = ''; protected $comptype = Tar::COMPRESS_AUTO; + /** @var resource|int */ protected $fh; protected $memory = ''; protected $closed = true; @@ -530,7 +531,7 @@ class Tar { * Decode the given tar file header * * @param string $block a 512 byte block containign the header data - * @return array|false + * @return false|array */ protected function parseHeader($block) { if(!$block || strlen($block) != 512) return false; @@ -633,8 +634,14 @@ class Tar { } } +/** + * Class TarIOException + */ class TarIOException extends Exception { } +/** + * Class TarIllegalCompressionException + */ class TarIllegalCompressionException extends Exception { } |