Closed
Description
Since 2.8, DomCrawler overrides the SplStorage method "getHash($object)" for the purpose of displaying a deprecation message.
When a Crawler object is cloned this triggers PHP Bug #67582 Cloned SplObjectStorage with overwritten getHash fails offsetExists() and makes the cloned Crawler instance not working correctly (e.g. it's not possible to remove elements from them because methods detach() and removeAll() don't work).
Removing elements from cloned Crawler instances was not a problem up to Symfony 2.7. It's a regression that breaks some of my projects.
The problem was introduced in commit 997c650