Stream wrapper collision
agustinprod opened this issue · 0 comments
agustinprod commented
- Serializable Closure Version: 1.0.2
- Laravel Version: 8.62.0
- PHP Version: 8.0.0
- Database Driver & Version: Does not apply
Description:
We're seeing some exceptions thrown on our queues, because both of the libraries are trying to register the same stream protocol:
stream_wrapper_register(): Protocol closure:// is already defined.
opis/closure author says he gained the right to dont check if it's in use:
opis/closure#106
Maybe laravel/serializable-closure should register a different protocol name
Steps To Reproduce:
- Use laravel/seriazable-closure somewhere
- Try to use opis/closure on the same process (octane or just a queue)
An exception will be thrown
Related conversation laravel/framework#38801