Commit graph

46 commits

Author SHA1 Message Date
Roeland Jago Douma
0bc7fe4cb1
Fix read in callbackwrapper
The number of read bytes is not the same as the number of bytes
requested to read.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-02-14 15:28:47 +01:00
0a78597117 use better method to determine when a stream is a directory stream 0.6.1 2018-04-24 11:07:38 +02:00
851b822ac2 add php 7.1 and 7.2 tests, remove hhvm 0.6.0 2018-01-30 15:09:12 +01:00
03ad0180b4 Add CountWrapper 2018-01-30 15:09:12 +01:00
0ef510af5a Merge pull request #7 from WyriHaximus/patch-1
Markdown styling
2017-07-06 13:39:35 +02:00
Cees-Jan Kiewiet
a87fb58f01 Markdown styling 2017-07-05 17:23:34 +02:00
6bfd2fdbd9 Merge pull request #5 from PVince81/stream_close_scare_away_ghosts 0.5.2
Prevent duplicate closeCallback calls in case of GC ghosts
2016-12-02 15:21:23 +01:00
Vincent Petry
668abfee80
Prevent duplicate closeCallback calls in case of GC ghosts
Sometimes PHP 7 GC decides to call stream_close again even after the
PHP request has ended, and even if fclose was called before already.
2016-12-02 14:57:57 +01:00
0700f81441 fix a problem with UrlCallBack 0.5.1 2016-10-26 22:16:07 +02:00
5981b1b39c add PathWrapper to get a virtual path for an existing file 0.5.0 2016-10-26 22:08:04 +02:00
Robin Appelman
d3620e8dc4 Fix retrywrapper when the wrapped stream fails to write or read completely 0.4.1 2016-06-02 16:37:52 +02:00
Robin Appelman
9ca4027464 remove php7 from allowed failures 0.4.0 2016-03-17 13:32:25 +01:00
Robin Appelman
af7f329db7 Add test for retry wrapper 2016-03-17 13:30:32 +01:00
Robin Appelman
96b787d793 Add retry stream wrapper 2016-03-17 13:30:28 +01:00
Robin Appelman
5693b6d771 proper coverals version for older php support 2016-03-16 14:27:16 +01:00
Robin Appelman
c6c38b0a00 No more 5.3 >:( 2015-10-16 16:05:40 +02: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
1cca87c499 Create LICENCE 0.3.0 2015-09-01 16:56:35 +02:00
Robin Appelman
4eb39ce82e test with more php versions 2015-04-25 16:14:03 +02:00
Robin Appelman
f3b397f504 Fix recursive mkdir 2014-08-27 16:03:35 +02:00
Robin Appelman
b9bba79250 Check if callable when we actually try to call it 2014-08-27 15:52:10 +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
448dfc577c Add scrutinizer badge 2014-08-27 12:45:15 +02:00
Robin Appelman
30189e4a0f Fix unit test 2014-08-27 12:41:22 +02:00
Robin Appelman
7bde877610 We create the context ourselves 2014-08-27 12:21:32 +02:00
Robin Appelman
a96e4754f7 No need to check if isset since we're creating the context ourselves 2014-08-27 12:20:26 +02:00
Robin Appelman
5aae45f2dd We already the checks earlier 0.2 2014-07-31 01:46:15 +02:00
Robin Appelman
e2e41824dc Extend test cases as bit 2014-07-31 01:45:38 +02:00
Robin Appelman
6b13abb570 Set allow failure on hhvm due to facebook/hhvm#3321 2014-07-31 01:37:52 +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
b876cef7f2 Add interfaces for File and Directory wrappers 2014-07-30 23:51:55 +02:00
Robin Appelman
37ebfdf0b1 update readme example 2014-07-24 01:45:04 +02:00
Robin Appelman
fd996aea9c Fix case 2014-07-24 01:44:48 +02:00
Robin Appelman
a19beaf7ef Add Wrapper::wrap() convenience method 0.1.1
also fix some test class names
2014-07-24 01:07:35 +02:00
Robin Appelman
acb8b69108 call callbacks after running the stream operation 2014-07-24 00:45:45 +02:00
Robin Appelman
22966cdade lower case package name 0.1 2014-07-24 00:18:30 +02:00
Robin Appelman
eeebf10462 add readme 2014-07-23 23:23:12 +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
dc3701e16f also test on 5.3 2014-07-23 23:03:36 +02:00
Robin Appelman
d54615fd3a initial version 2014-07-23 23:02:10 +02:00