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

Issue with combining wrappers #121

Closed
rickselby opened this issue Dec 2, 2015 · 5 comments
Closed

Issue with combining wrappers #121

rickselby opened this issue Dec 2, 2015 · 5 comments

Comments

@rickselby
Copy link

When trying to use compress.zlib in conjunction with vfs (i.e. compress.zlib://vfs://root/test.nbt) I get "cannot represent a stream of type user-space as a File Descriptor" when trying to use fopen.

Much googling hasn't turned up much on this issue; is this something that can be supported, or a limitation?

@mikey179
Copy link
Member

mikey179 commented Dec 4, 2015

Reopen, referenced the wrong issue id in the commit

@mikey179 mikey179 reopened this Dec 4, 2015
@mikey179
Copy link
Member

mikey179 commented Dec 4, 2015

Which PHP version are you using? Trying this with PHP 5.6.4 I get the error message "failed to open stream: operation failed", not the one you have. Also, it seems the vfsStreamWrapper never gets called, so I'd suspect a limitation in PHP.

@rickselby
Copy link
Author

It was 5.6.12 but admittedly on Windows. I'll test on Linux when I get a chance (though that'll be 5.5.9, Ubuntu 14.04) and get back to you.

@rickselby
Copy link
Author

5.5.9 on linux gives both the "cannot represent a stream of type user-space as a File Descriptor" and "failed to open stream: operation failed" warnings.

@mikey179
Copy link
Member

I took the time to investigate it further. I stumbled about the stream_cast method which until now only returns false, but could have a purpose now. I'm not sure if this feature should be added, as it can only work with a real file system interaction. But this should be discussed in PR #125, I'll close this issue for now.

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

2 participants