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

Fix stack overflow error incase a service provider lies about providing a specific service #169

Merged
merged 6 commits into from Jun 30, 2019

Conversation

azjezz
Copy link
Contributor

@azjezz azjezz commented Jan 26, 2019

in case a service provider returns true when provides(string $service): bool is called, but doesn't actually provide it, a stack overflow will occur ( ->get() calls ->get() over and over again ) resulting in a fatal error. throwing an exception in this case is better.

i have faced this issue while working in nuxed/container ( since the container package is a re-implementation of the league container in hack lang ) ( see : nuxed/framework@4f693ab )

( i accidentally deleted the fork for #168 )

@philipobenito philipobenito merged commit a412f84 into thephpleague:master Jun 30, 2019
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 this pull request may close these issues.

None yet

2 participants