Skip to content

Adds tests for uncloneable Error and Exception classes #6388

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

Open
wants to merge 2 commits into
base: PHP-7.3
Choose a base branch
from

Conversation

zghosts
Copy link
Contributor

@zghosts zghosts commented Oct 28, 2020

Adds two tests making sure that objects of type Exception and Error are not cloneable

@zghosts zghosts changed the base branch from master to PHP-7.3 October 28, 2020 00:08
@nikic
Copy link
Member

nikic commented Oct 29, 2020

I wonder why these can't be cloned. I don't see an obvious technical reason.

@zghosts
Copy link
Contributor Author

zghosts commented Oct 29, 2020

Well the source says that exceptions and errors should not be cloned, same goes for generators for instance, I guess they're not supposed to be cloned, these tests just ensures this behavior is true

@Girgias
Copy link
Member

Girgias commented Jan 4, 2023

Could you rebase this on top of master if this is still relevant?

Copy link

There has not been any recent activity in this PR. It will automatically be closed in 7 days if no further action is taken.

@github-actions github-actions bot added the Stale label May 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants