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

Strange "Failed to open stream" errors #149

Closed
Vectorial1024 opened this issue Jan 4, 2025 · 1 comment · Fixed by #150
Closed

Strange "Failed to open stream" errors #149

Vectorial1024 opened this issue Jan 4, 2025 · 1 comment · Fixed by #150

Comments

@Vectorial1024
Copy link

An example of such error:

include(closure://57f201094ffa4d4b72f510dfa76fe728): Failed to open stream: "Opis\Closure\ClosureStream::stream_open" call failed
{"exception":"[object] (ErrorException(code: 0): include(closure://57f201094ffa4d4b72f510dfa76fe728): Failed to open stream: \"Opis\\Closure\\ClosureStream::stream_open\" call failed at [...]\\vendor\\opis\\closure\\src\\ClosureStream.php:134)

To reproduce, see: Vectorial1024/laravel-process-async#13

My basic understanding of this library at version 4 is that, when something is serialized, it is serialized and the result+key is stored into a PHP runtime array cache, and when something needs to be unserialized, it will first find the result+key, and then look at said runtime array cache to give back the original thing. However, my use case is that the place to serialize the info and the place to unserialize them is different, and so the cache will always be empty, and so unserialization will always fail.

Is it possible for this library to just stop looking at the runtime array cache and just unserialize the information on demand?

@sorinsarca
Copy link
Member

Thanks for catching this, @Vectorial1024

It is now fixed in v4.0.1

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 a pull request may close this issue.

2 participants