Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Incompatibility with php-vcr (or other libraries using stream_wrapper_register) #266

Open
GM-Alex opened this issue Sep 7, 2017 · 2 comments
Assignees

Comments

@GM-Alex
Copy link
Contributor

GM-Alex commented Sep 7, 2017

Question Answer
Humbug ver. 1.0-dev
Adapter ver. PHPUnit 5.7.1
Platform Ubuntu (Docker)
PHP ver. 7.1

php-vcr uses stream_wrapper_register for the file protocol. If you are turn it on at the bootstrap file humbug will stop working. A option of replacing the original file with the mutated one instead of using a stream wrapper could solve the issue, but isn't that elegant.

@theofidry
Copy link
Member

I'm a bit unfamiliar with that part but maybe @borNfreee stumbled across that issue as well

@maks-rafalko
Copy link

Unfortunately, no, I'm not familiar too. It requires a deep investigation.

Btw, today I found a critical bug with IncludeInterceptor that wraps the file stream, you can find explanation here

Diff for bugfix: https://github.com/infection/infection/pull/40/files#diff-069162814a4c08260f3df236e1695619R111

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants