Commit graph

28 commits

Author SHA1 Message Date
6c91d3e390 add stream wrapper to calculate hash on write 2019-03-12 10:42:36 +01:00
Roeland Jago Douma
ac08c360e7
fixup! Added a simple hash wrapper
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-03-11 22:54:13 +01:00
Roeland Jago Douma
550e84e1cc
Added a simple hash wrapper
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-03-11 22:31:35 +01:00
2c8ae56d02 cleanup context handling for wrappers 2019-03-11 16:52:13 +01:00
3171a535de autodetect class and protocol 2019-03-11 15:36:15 +01:00
2538e6d05c bump minimum php version to 5.6 and update test libs 2019-03-11 14:58:42 +01:00
Roeland Jago Douma
8c45c9a43b
Pass the strlen to the readCallback as was expected
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-02-15 13:52:13 +01:00
Roeland Jago Douma
3a28b616d5
Add test
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-02-14 16:37:46 +01:00
03ad0180b4 Add CountWrapper 2018-01-30 15:09:12 +01:00
5981b1b39c add PathWrapper to get a virtual path for an existing file 2016-10-26 22:08:04 +02:00
Robin Appelman
d3620e8dc4 Fix retrywrapper when the wrapped stream fails to write or read completely 2016-06-02 16:37:52 +02:00
Robin Appelman
af7f329db7 Add test for retry wrapper 2016-03-17 13:30:32 +01:00
Robin Appelman
f8cbccabd5 fix 5.3 compatiblity of tests 2015-10-16 16:01:06 +02:00
Robin Appelman
2e2fe951e9 static::class is only since 5.5 :( 2015-10-16 15:51:11 +02:00
Robin Appelman
f47297b76a Add directory filter 2015-10-16 15:51:11 +02:00
Robin Appelman
91176a6bf5 add directory wrapper base 2015-10-16 15:51:11 +02:00
Robin Appelman
d31237bc40 Add seekable wrapper to make non seekable streams seekable 2015-10-16 15:51:11 +02:00
Robin Appelman
f3b397f504 Fix recursive mkdir 2014-08-27 16:03:35 +02:00
Robin Appelman
e5854bfd06 Add UrlCallBack wrapper that provides callbacks for fopen, unlink, rename, etc 2014-08-27 15:42:43 +02:00
Robin Appelman
53cfe7f4f1 Add directory support to wrappers 2014-08-27 15:42:40 +02:00
Robin Appelman
30189e4a0f Fix unit test 2014-08-27 12:41:22 +02:00
Robin Appelman
e2e41824dc Extend test cases as bit 2014-07-31 01:45:38 +02:00
Robin Appelman
99ecfc5287 Better cleanup of registered streams 2014-07-31 01:06:38 +02:00
Robin Appelman
214a31bc98 Add IteratorDirectory to create directory handles from iterators and arrays 2014-07-31 00:36:48 +02:00
Robin Appelman
fd996aea9c Fix case 2014-07-24 01:44:48 +02:00
Robin Appelman
a19beaf7ef Add Wrapper::wrap() convenience method
also fix some test class names
2014-07-24 01:07:35 +02:00
Robin Appelman
e1a270f184 php <5.4 doesn't support truncate for stream wrappers 2014-07-23 23:09:46 +02:00
Robin Appelman
d54615fd3a initial version 2014-07-23 23:02:10 +02:00