Skip to content

Stream wrapper collision #22

@agustinprod

Description

@agustinprod
  • 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:

  1. Use laravel/seriazable-closure somewhere
  2. Try to use opis/closure on the same process (octane or just a queue)

An exception will be thrown


Related conversation laravel/framework#38801

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions