Skip to content

Conversation

camporter
Copy link
Contributor

A simple fix for bug 77849. However, there may be connections that can clone without issue, in which case a clone handle would be needed and would need to be done selectively.

@krakjoe
Copy link
Member

krakjoe commented Apr 5, 2019

The test can be much simpler: What we are testing is that clone will fail, we're not testing for a fault here because we know it cannot happen if we prohibit clone: Just do $db = PDOTest::factory(); and clone and test for the expected exception ...

@camporter
Copy link
Contributor Author

👍 I'd originally added the additional querying because I wanted to tell if there happened to be other drivers that did not segfault after cloning before this change. Went ahead and removed the querying now.

@krakjoe krakjoe self-assigned this Apr 5, 2019
@krakjoe
Copy link
Member

krakjoe commented Apr 5, 2019

Merged as 9ec1525

Thanks.

@krakjoe krakjoe closed this Apr 5, 2019
@krakjoe
Copy link
Member

krakjoe commented Apr 5, 2019

Followed up with a2b8a62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants