Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not open stream with code that generate salt by file_get_contents('/dev/urandom', false, null, 0, 16) #239

Closed
penja opened this issue Dec 12, 2017 · 6 comments

Comments

@penja
Copy link

penja commented Dec 12, 2017

Hi.
Thanks for this awesome library.

When using PHP VCR with code that use file_get_contents('/dev/urandom', false, null, 0, 16) for generating pseudo random salt. VCR recorder do not open the stream. We have got error like this:

file_get_contents(/dev/urandom): failed to open stream: "VCR\Util\StreamProcessor::stream_open" call failed
@killua99
Copy link

Did you fix this issue?

@renatomefi
Copy link
Member

Please update to v1.4.3

@sithara
Copy link

sithara commented Jun 4, 2018

This seems to be still breaking for me when I try to open a local file using file_get_contents in my phpunit tests. Appreciate any help. I tried installing php-vcr using composer require --dev php-vcr/php-vcr

@renatomefi
Copy link
Member

@sithara what's the version you have installed? The version 1.4.3 is still marked as pre-release for testing, so you might have to force it on you composer.json

@sithara
Copy link

sithara commented Jun 12, 2018

My php-vcr version is 1.3.2 . I'm also getting very weird errors like #251 . It works correctly if its the cassette is set to record file_get_contents('http://www.google.com') . In my case, I have a curl_exec posting file contents to a server. Not sure where I'm going wrong

@renatomefi
Copy link
Member

@sithara so please first update to 1.4.3 and try again

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

No branches or pull requests

4 participants