1
0
mirror of https://github.com/splitbrain/php-archive.git synced 2025-01-17 05:28:25 +01:00

70 Commits

Author SHA1 Message Date
Andreas Gohr
e3a27bdc49 throw ArchiveIllegalCompressionException on bad compression level 2018-06-12 21:50:31 +02:00
Andreas Gohr
a46f3aaeb9 check for broken iconv setup 1.0.10 2018-05-01 10:03:56 +02:00
Andreas Gohr
0443bcff12
Merge pull request #23 from peter279k/test_enhancement
Test enhancement
2018-02-05 09:49:31 +01:00
peter279k
d65719bfe5 Merge branch 'test_enhancement' from source 2018-02-04 22:19:32 +08:00
peter279k
e6e5a8edf6 using assertInternalType method 2018-02-04 22:17:09 +08:00
peter279k
9711a651a4 drop the PHP 5.3 from test set the required 5.4+ 2018-02-04 22:16:23 +08:00
peter279k
f114f26ce5 usin assertInternalType method 2018-02-04 22:01:54 +08:00
peter279k
0f4a5d61de add clear cache 2018-02-04 21:16:23 +08:00
peter279k
7aaacf33a8 using filesize to check file size 2018-02-04 20:01:13 +08:00
peter279k
713d849aab 'test_enhancement' branch of removing bin2hex 2018-02-04 19:54:31 +08:00
peter279k
84db2380b4 chnage assertion method 2018-02-04 19:52:30 +08:00
peter279k
e62ad36138 drop the PHP 5.3 from test set the required 5.4+ 2018-02-04 19:52:22 +08:00
peter279k
b5105a0c6c using bin2hex before getting file content string 2018-02-04 19:46:35 +08:00
peter279k
9098d2509b drop the PHP 5.3 from test set the required 5.4+ 2018-02-04 19:34:41 +08:00
peter279k
2b5fb5f5c9 change array syntax for php 5.3 2018-02-04 19:23:47 +08:00
peter279k
12f443977f set the assertGreaterThanOrEqual 2018-02-04 19:18:34 +08:00
peter279k
da604987be change 104 to 102 2018-02-04 19:06:54 +08:00
peter279k
ef1985eead tests enhancement 2018-02-04 19:01:02 +08:00
Andreas Gohr
2a63b8cf0b use trusty for running tests on travis 1.0.9 2017-06-11 08:11:38 +02:00
Andreas Gohr
152eaa647a use composer installed phpunit 2017-06-11 08:07:47 +02:00
Andreas Gohr
439293a9c2 Merge pull request #22 from twifty/gzip-fix
Gzip fix
2017-06-11 08:06:03 +02:00
Owen
ed78f7db29 Fix gzip issue #20 2017-06-10 12:13:03 +08:00
Owen
b74df7c9ce added gzip test, ignored nbproject 2017-06-10 12:04:06 +08:00
Andreas Gohr
6b1c1746fa Throw an exception when a file changes during reading
see discussion at #17
1.0.8
2017-03-19 10:10:53 +01:00
Andreas Gohr
735029407f fixed that iconv workaround
had a little logic error there - need to preserve the original string to
retry the encoding a second time
2017-03-03 15:44:46 +01:00
Andreas Gohr
aa9ae83c80 fix filesize calculation in GNU long link tar files
also fixes a warning on PHP 7.1
2017-03-03 15:24:37 +01:00
Andreas Gohr
516553390d work around an iconv bug in older PHP versions 2017-03-03 14:52:56 +01:00
Andreas Gohr
aae0916f9d added newer php versions to travis 2017-03-03 14:45:23 +01:00
Andreas Gohr
f17c965e9f added hints about useful php extensions to composer 2017-03-03 13:55:47 +01:00
Andreas Gohr
3933fc63c6 ignore utf-8 chars that don't fit into CP437 2017-03-03 13:51:59 +01:00
Andreas Gohr
a72a6e56e1 properly encode UTF-8 filenames in zip files #14
Uses the Info-ZIP Unicode Path Extra Field 0x7075
2017-03-03 13:46:31 +01:00
Andreas Gohr
6606edd9ee some improvements on non 7bit string handling #14
This should read at least some zip files with umlauts and stuff better
2017-03-03 12:45:44 +01:00
Andreas Gohr
74d7442807 testing: run created archives through native tools
This should ensure the files we create are actually understood by common
tools.
2017-03-03 10:52:16 +01:00
Andreas Gohr
2e7533b384 always store directories with file size 0. fixes #15 2017-03-03 10:22:10 +01:00
Andreas Gohr
c075304b44 added dogfooding test, extract self created archives 1.0.7 2015-08-12 15:24:34 +02:00
Andreas Gohr
c2490eaadc correctly skip in bzip streams. closes #9 2015-08-12 15:21:54 +02:00
Andreas Gohr
2492960566 more tests with different extensions 2015-08-12 14:35:10 +02:00
Andreas Gohr
17dab7eec0 ignore null block headers 1.0.6 2015-08-12 12:33:07 +02:00
Andreas Gohr
2188e3f180 fixed size add in Fileinfo::frompath. closes #9 1.0.5 2015-08-12 12:07:51 +02:00
Andreas Gohr
1c69ad040b throw proper exceptions when tar headers can't be parsed 2015-08-12 11:58:17 +02:00
Andreas Gohr
b244bc4dbd added test for magic byte testing 2015-08-12 11:48:39 +02:00
Andreas Gohr
1ae8687e13 Merge branch 'master' into magicbytes
* master:
  added compression example to README
  fixed various calls in the tests
  fixed compression setting on saving inmemory tars
2015-08-12 11:46:46 +02:00
Andreas Gohr
edeb28cc55 added compression example to README 2015-08-12 11:46:20 +02:00
Andreas Gohr
091fac973f fixed various calls in the tests 2015-08-12 11:44:24 +02:00
Andreas Gohr
04f6863f6b fixed compression setting on saving inmemory tars 2015-08-12 11:31:32 +02:00
Andreas Gohr
5e7d32a4f4 use magic bytes to determine compression type 2015-08-12 11:30:10 +02:00
Andreas Gohr
c08ee5ac36 Add script and travis setup to automatically create docs
Squashed commit of the following:

commit aa7366d65b8b24542c08651d1f8b8bb3ce6f5001
Author: Andreas Gohr <andi@splitbrain.org>
Date:   Wed Aug 5 21:06:13 2015 +0200

    removed apigen.phar, setup .gitignore

commit 12a3da7477614ecc1d55318fe4551fbe1b92a0bc
Author: Andreas Gohr <andi@splitbrain.org>
Date:   Wed Aug 5 21:03:45 2015 +0200

    added some info within the generate-api script

commit 47215ea47472db6e15a07795861c83962339cf77
Author: Andreas Gohr <andi@splitbrain.org>
Date:   Wed Aug 5 20:56:11 2015 +0200

    added API docs to readme

commit d67bda30107c0280c9f562e5e2156a0b0b6c2b6b
Author: Andreas Gohr <andi@splitbrain.org>
Date:   Wed Aug 5 20:53:19 2015 +0200

    abort when DST does not exist

commit 2e769082a64040b1dc3583218ca96be6e8c481de
Author: Andreas Gohr <andi@splitbrain.org>
Date:   Wed Aug 5 20:52:25 2015 +0200

    Revert "try to set autocomplete values"

    This reverts commit 914d42546a1390250f858b08c172df4cc0d783df.

commit 914d42546a1390250f858b08c172df4cc0d783df
Author: Andreas Gohr <andi@splitbrain.org>
Date:   Wed Aug 5 20:50:21 2015 +0200

    try to set autocomplete values

commit e53cd155119ffb6be273f31233bd7ff3ad9f67cc
Author: Andreas Gohr <andi@splitbrain.org>
Date:   Wed Aug 5 20:44:32 2015 +0200

    added apigen config

commit c32fa34db6cc67eeff4f6f0504759214876dfbdf
Author: Andreas Gohr <andi@splitbrain.org>
Date:   Wed Aug 5 20:34:47 2015 +0200

    fixed trigger branch

commit 5bb8f757197cca9169a0264ce1e8f85aa4f6a74a
Author: Andreas Gohr <andi@splitbrain.org>
Date:   Wed Aug 5 20:31:04 2015 +0200

    another go

commit 9e806b62360f315e24ae5586c1a9cbd94644acfa
Author: Andreas Gohr <andi@splitbrain.org>
Date:   Wed Aug 5 20:26:53 2015 +0200

    adjusted logic for travis compile

commit 1b4e03ebd792d10ba67914404f357c1678d5a950
Author: Andreas Gohr <andi@splitbrain.org>
Date:   Wed Aug 5 20:22:45 2015 +0200

    first go at automatic apidoc building
2015-08-05 21:07:59 +02:00
Andreas Gohr
659465df84 added apigen config for http://apigenerator.org/ 2015-08-05 19:26:43 +02:00
Andreas Gohr
6572e78ef9 adjusted tests 1.0.4 2015-07-24 13:36:49 +02:00
Andreas Gohr
a8881f4e07 correctly remove temporary files when uncompressing ZIPs 1.0.3 2015-07-24 13:29:49 +02:00