Skip to content

Pass the strlen to the readCallback as was expected - #10

Merged
icewind1991 merged 1 commit into
icewind1991:masterfrom
rullzer:master
Feb 15, 2019
Merged

Pass the strlen to the readCallback as was expected#10
icewind1991 merged 1 commit into
icewind1991:masterfrom
rullzer:master

Conversation

@rullzer

@rullzer rullzer commented Feb 15, 2019

Copy link
Copy Markdown
Contributor

So turns out I was to quick with #8

Fixed now
And adjusted the tests to actually check for this

@coveralls

coveralls commented Feb 15, 2019

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 95.413% when pulling 8c45c9a on rullzer:master into e1b5ac1 on icewind1991:master.

@rullzer

rullzer commented Feb 15, 2019

Copy link
Copy Markdown
Contributor Author

I have no idea why php <7 is failing

@rullzer

rullzer commented Feb 15, 2019

Copy link
Copy Markdown
Contributor Author

Ok turns out php <7 always reads the chunk size and does other magic in fread.

Comment thread src/CallbackWrapper.php Outdated
@icewind1991

Copy link
Copy Markdown
Owner

you can add a condition for the php version in the test case.

As long as the callback actually gets the number of bytes read it doesn't matter that those values depend on php version

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@icewind1991
icewind1991 merged commit 4db3ed6 into icewind1991:master Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants