bug #15906 Forbid serializing a Crawler (stof)
bug #15906 Forbid serializing a Crawler (stof)

This PR was merged into the 2.3 branch.

Discussion
----------

Forbid serializing a Crawler

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Unserializing a Crawler instance creates DOM elements in an invalid state, making the Crawler unusable.
While working on #15849, I figured out that DomCrawler actually inherits ``Serializable`` from its ``SplObjectStorage`` parent, and so I tried to serialize and unserialize one. The answer is that it does not work. This is what happens when trying to call ``parents`` on it for instance:

```
Symfony\Component\DomCrawler\Crawler::parents(): Invalid State Error
```

Commits
-------

12733cb Forbid serializing a Crawler

Ocramius/symfony,danionut90/symfony,inso/symfony,hacfi/symfony,Wasserschlange/symfony,tgalopin/symfony,smatyas/symfony,teohhanhui/symfony,oleg-andreyev/symfony,superdav42/symfony,chrisguitarguy/symfony,moycarretero/behat,deguif/symfony,GuilhemN/symfony,kbond/symfony,adamelso/symfony,dzuelke/symfony,dbu/symfony,pix-art/symfony,jeremyFreeAgent/symfony,garak/symfony,dosten/symfony,andreia/symfony,fabpot/symfony,Padam87/symfony,HeahDude/symfony,weaverryan/symfony,wilderguzman/symfony,Triiistan/symfony,hichammoad/symfony,jamyouss/symfony,arjenm/symfony,SaschaDens/symfony,jakubsacha/symfony,vincentaubert/symfony,Ener-Getick/symfony,WhiteEagle88/symfony,Triiistan/symfony,derrabus/symfony,weaverryan/symfony,Koc/symfony,sstok/symfony,MAXakaWIZARD/symfony,localheinz/symfony,GuilhemN/symfony,linovarona/symfony,teohhanhui/symfony,Restless-ET/symfony,pyrech/symfony,ragboyjr/symfony,maidmaid/symfony,ogizanagi/symfony,pix-art/symfony,jvasseur/symfony,peterjmit/symfony,deguif/symfony,neemzy/symfony,AlexDpy/symfony,derrabus/symfony,pix-art/symfony,ogizanagi/symfony,tPl0ch/symfony,beoboo/symfony,mpdude/symfony,digitalkaoz/symfony,pix-art/symfony,garak/symfony,andrerom/symfony,Nyholm/symfony,thunderer/symfony,symfony/symfony,ewgRa/symfony,havvg/symfony,weaverryan/symfony,chalasr/symfony,MatTheCat/symfony,nasimnabavi/symfony,beoboo/symfony,raziel057/symfony,dosten/symfony,Slamdunk/symfony,ajgarlag/symfony,OndraM/symfony,c960657/symfony,jjanvier/symfony,iltar/symfony,gnat42/symfony,damienalexandre/symfony,Ocramius/symfony,pierredup/symfony,linovarona/symfony,jakzal/symfony,Ener-Getick/symfony,yceruto/symfony,dbu/symfony,d-ph/symfony,GuilhemN/symfony,nasimnabavi/symfony,okdana/symfony,Aliance/symfony,ewgRa/symfony,mickaelandrieu/symfony,calm10/Symfony2,EVODelavega/symfony,cvuorinen/symfony,ogizanagi/symfony,mvhirsch/symfony,dawehner/symfony,curry684/symfony,MatTheCat/symfony,xabbuh/symfony,Ener-Getick/symfony,hichammoad/symfony,alebo/symfony,pierredup/symfony,Einenlum/symfony,Amo/symfony,jjanvier/symfony,Padam87/symfony,localheinz/symfony,phramz/symfony,ogizanagi/symfony,csarrazi/symfony,apfelbox/symfony,michaelperrin/symfony,Simperfit/symfony,razmo/symfony,frankdejonge/symfony,EVODelavega/symfony,zorn-v/symfony,OndraM/symfony,gimler/symfony,Simperfit/symfony,Koc/symfony,adamelso/symfony,SofHad/symfony,DavidGarciaCat/symfony,wilderguzman/symfony,michaelperrin/symfony,Wasserschlange/symfony,jpauli/symfony,jakubsacha/symfony,okdana/symfony,vincentaubert/symfony,believer-ufa/symfony,nicolas-grekas/symfony,GuilhemN/symfony,codeclimate-testing/symfony,mickaelandrieu/symfony,garak/symfony,nicolas-grekas/symfony,realityking/symfony,jjanvier/symfony,e-moe/symfony,codeclimate-testing/symfony,georaldc/symfony,tecnocat/symfony,lstrojny/symfony,EVODelavega/symfony,stof/symfony,patrick-mcdougle/symfony,mnapoli/symfony,Ocramius/symfony,shieldo/symfony,tronsha/symfony,voronkovich/symfony,hichammoad/symfony,inso/symfony,jameshalsall/symfony,Wasserschlange/symfony,jvasseur/symfony,jpauli/symfony,tekjava/symfony,mvhirsch/symfony,jpauli/symfony,davewwww/symfony,AlexDpy/symfony,jameshalsall/symfony,linovarona/symfony,Amo/symfony,apfelbox/symfony,Einenlum/symfony,apfelbox/symfony,believer-ufa/symfony,tucksaun/symfony,hiddewie/symfony,pyrech/symfony,Restless-ET/symfony,hiddewie/symfony,Soullivaneuh/symfony,raziel057/symfony,jamyouss/symfony,nasimnabavi/symfony,mickaelandrieu/symfony,zerustech/symfony,dkarvounaris/symfony,beoboo/symfony,Strate/symfony,unexge/symfony,stof/symfony,hacfi/symfony,deguif/symfony,Taluu/symfony,jelte/symfony,arjenm/symfony,cvuorinen/symfony,lstrojny/symfony,Ener-Getick/symfony,stof/symfony,jamyouss/symfony,ragboyjr/symfony,kbond/symfony,SofHad/symfony,SaschaDens/symfony,Pierstoval/symfony,patrick-mcdougle/symfony,andreia/symfony,arjenm/symfony,frankdejonge/symfony,yceruto/symfony,mmauri04/symfony,digitalkaoz/symfony,voronkovich/symfony,SaschaDens/symfony,Slamdunk/symfony,gencer/symfony,davewwww/symfony,Tobion/symfony,Deamon/symfony,jeremyFreeAgent/symfony,tgalopin/symfony,zerustech/symfony,apetitpa/symfony,calm10/Symfony2,e-moe/symfony,tPl0ch/symfony,alekitto/symfony,alekitto/symfony,MAXakaWIZARD/symfony,ajgarlag/symfony,AlexDpy/symfony,Triiistan/symfony,jameshalsall/symfony,alekitto/symfony,aeoris/symfony,WouterJ/symfony,peterrehm/symfony,gonzalovilaseca/symfony,romaricdrigon/symfony,wilderguzman/symfony,wilderguzman/symfony,aeoris/symfony,zorn-v/symfony,mweimerskirch/symfony,dzuelke/symfony,teohhanhui/symfony,Nyholm/symfony,mvhirsch/symfony,joelwurtz/symfony,vincentaubert/symfony,josephdpurcell/symfony,hiddewie/symfony,oleg-andreyev/symfony,chrisguitarguy/symfony,MatTheCat/symfony,dbu/symfony,ro0NL/symfony,jakubsacha/symfony,cvuorinen/symfony,dzuelke/symfony,jzawadzki/symfony,maidmaid/symfony,dkarvounaris/symfony,paradajozsef/symfony,wilderguzman/symfony,geoffrey-brier/symfony,Aliance/symfony,ro0NL/symfony,moycarretero/behat,dawehner/symfony,codeclimate-testing/symfony,WhiteEagle88/symfony,webmozart/symfony,lepiaf/symfony,Padam87/symfony,jvasseur/symfony,georaldc/symfony,gnat42/symfony,hason/symfony,Engerim/symfony,apetitpa/symfony,pix-art/symfony,klandaika/symfony,Aliance/symfony,josephdpurcell/symfony,jelte/symfony,lstrojny/symfony,maidmaid/symfony,ro0NL/symfony,kbond/symfony,damienalexandre/symfony,backbone87/symfony,realityking/symfony,AlexDpy/symfony,josephdpurcell/symfony,jameshalsall/symfony,georaldc/symfony,oleg-andreyev/symfony,tucksaun/symfony,jean-gui/symfony,ewgRa/symfony,Pierstoval/symfony,hhamon/symfony,Tobion/symfony,tronsha/symfony,OndraM/symfony,dzuelke/symfony,neemzy/symfony,Soullivaneuh/symfony,zerkms/symfony,unexge/symfony,romainneutron/symfony,c960657/symfony,mpdude/symfony,zerkms/symfony,havvg/symfony,symfony/symfony,Triiistan/symfony,damienalexandre/symfony,mvhirsch/symfony,bendavies/symfony,thunderer/symfony,tronsha/symfony,georaldc/symfony,gimler/symfony,pamil/symfony,ragboyjr/symfony,bburnichon/symfony,garak/symfony,webmozart/symfony,iltar/symfony,hiddewie/symfony,tronsha/symfony,Restless-ET/symfony,d-ph/symfony,thunderer/symfony,adamelso/symfony,iltar/symfony,OskarStark/symfony,alebo/symfony,tecnocat/symfony,hhamon/symfony,natechicago/symfony,jeremyFreeAgent/symfony,klandaika/symfony,hichammoad/symfony,MisatoTremor/symfony,adamelso/symfony,Engerim/symfony,natechicago/symfony,Ener-Getick/symfony,aeoris/symfony,voronkovich/symfony,chalasr/symfony,alebo/symfony,EVODelavega/symfony,WouterJ/symfony,tekjava/symfony,alebo/symfony,tecnocat/symfony,tPl0ch/symfony,tPl0ch/symfony,mpdude/symfony,gnat42/symfony,mnapoli/symfony,WhiteEagle88/symfony,beoboo/symfony,Nyholm/symfony,tekjava/symfony,pierredup/symfony,believer-ufa/symfony,paradajozsef/symfony,digitalkaoz/symfony,mmauri04/symfony,e-moe/symfony,mmauri04/symfony,backbone87/symfony,HeahDude/symfony,thunderer/symfony,mihai-stancu/symfony,chalasr/symfony,SpacePossum/symfony,dmaicher/symfony,dbu/symfony,klandaika/symfony,voronkovich/symfony,damienalexandre/symfony,craue/symfony,raziel057/symfony,docteurklein/symfony,superdav42/symfony,hiddewie/symfony,bendavies/symfony,mickaelandrieu/symfony,Rvanlaak/symfony,patrick-mcdougle/symfony,georaldc/symfony,raziel057/symfony,paradajozsef/symfony,romaricdrigon/symfony,dunglas/symfony,jderusse/symfony,geoffrey-brier/symfony,DavidGarciaCat/symfony,realityking/symfony,Amo/symfony,peterrehm/symfony,thunderer/symfony,mihai-stancu/symfony,kbond/symfony,mweimerskirch/symfony,Taluu/symfony,Deamon/symfony,tgalopin/symfony,SofHad/symfony,MAXakaWIZARD/symfony,1ed/symfony,jakubsacha/symfony,davewwww/symfony,oleg-andreyev/symfony,jakubsacha/symfony,EVODelavega/symfony,geoffrey-brier/symfony,peterrehm/symfony,shieldo/symfony,michaelperrin/symfony,lepiaf/symfony,superdav42/symfony,jakzal/symfony,Tobion/symfony,codeclimate-testing/symfony,alekitto/symfony,sstok/symfony,ewgRa/symfony,believer-ufa/symfony,Engerim/symfony,MisatoTremor/symfony,GuilhemN/symfony,pix-art/symfony,dmaicher/symfony,jderusse/symfony,moycarretero/behat,geoffrey-brier/symfony,okdana/symfony,jpauli/symfony,ajgarlag/symfony,tronsha/symfony,backbone87/symfony,k0pernikus/symfony,tucksaun/symfony,razmo/symfony,HeahDude/symfony,lyrixx/symfony,jjanvier/symfony,localheinz/symfony,calm10/Symfony2,Deamon/symfony,realityking/symfony,gonzalovilaseca/symfony,joelwurtz/symfony,peterjmit/symfony,razmo/symfony,symfony/symfony,Restless-ET/symfony,smatyas/symfony,pamil/symfony,danionut90/symfony,realityking/symfony,beoboo/symfony,jelte/symfony,michaelperrin/symfony,apfelbox/symfony,Einenlum/symfony,xabbuh/symfony,mnapoli/symfony,Simperfit/symfony,Rvanlaak/symfony,OskarStark/symfony,tgalopin/symfony,nicolas-grekas/symfony,danionut90/symfony,andrerom/symfony,OskarStark/symfony,davewwww/symfony,gonzalovilaseca/symfony,Ocramius/symfony,dkarvounaris/symfony,danionut90/symfony,peterrehm/symfony,bburnichon/symfony,OskarStark/symfony,SpacePossum/symfony,craue/symfony,hhamon/symfony,yceruto/symfony,SofHad/symfony,dosten/symfony,symfony/symfony,sroze/symfony,curry684/symfony,apetitpa/symfony,mmauri04/symfony,dawehner/symfony,Ener-Getick/symfony,smatyas/symfony,ewgRa/symfony,webmozart/symfony,zerustech/symfony,mvhirsch/symfony,jeremyFreeAgent/symfony,SpacePossum/symfony,sgehrig/symfony,digitalkaoz/symfony,chrisguitarguy/symfony,jelte/symfony,cvuorinen/symfony,romaricdrigon/symfony,ajgarlag/symfony,lemoinem/symfony,zorn-v/symfony,gencer/symfony,superdav42/symfony,neemzy/symfony,shieldo/symfony,1ed/symfony,Soullivaneuh/symfony,danionut90/symfony,fabpot/symfony,Pierstoval/symfony,apfelbox/symfony,localheinz/symfony,believer-ufa/symfony,Wasserschlange/symfony,sstok/symfony,1ed/symfony,dosten/symfony,andrerom/symfony,MisatoTremor/symfony,gencer/symfony,docteurklein/symfony,webmozart/symfony,jakzal/symfony,dunglas/symfony,jjanvier/symfony,joelwurtz/symfony,csarrazi/symfony,yceruto/symfony,jvasseur/symfony,deguif/symfony,moycarretero/behat,jameshalsall/symfony,e-moe/symfony,lemoinem/symfony,gonzalovilaseca/symfony,nasimnabavi/symfony,OndraM/symfony,moycarretero/behat,docteurklein/symfony,lyrixx/symfony,SpacePossum/symfony,hichammoad/symfony,Ocramius/symfony,k0pernikus/symfony,webmozart/symfony,Koc/symfony,hacfi/symfony,georaldc/symfony,razmo/symfony,curry684/symfony,MAXakaWIZARD/symfony,OndraM/symfony,mweimerskirch/symfony,tronsha/symfony,derrabus/symfony,jean-gui/symfony,andreia/symfony,mpdude/symfony,sgehrig/symfony,jakzal/symfony,lyrixx/symfony,Amo/symfony,inso/symfony,razmo/symfony,havvg/symfony,sroze/symfony,ro0NL/symfony,Padam87/symfony,phramz/symfony,dzuelke/symfony,vincentaubert/symfony,derrabus/symfony,klandaika/symfony,Soullivaneuh/symfony,jean-gui/symfony,xabbuh/symfony,Simperfit/symfony,superdav42/symfony,HeahDude/symfony,Wasserschlange/symfony,xabbuh/symfony,unexge/symfony,DavidGarciaCat/symfony,mihai-stancu/symfony,fabpot/symfony,geoffrey-brier/symfony,ewgRa/symfony,zcodes/symfony,jelte/symfony,Tobion/symfony,lyrixx/symfony,Pierstoval/symfony,mweimerskirch/symfony,inso/symfony,sroze/symfony,dmaicher/symfony,havvg/symfony,chalasr/symfony,Ocramius/symfony,lepiaf/symfony,frankdejonge/symfony,craue/symfony,Nyholm/symfony,pyrech/symfony,zerustech/symfony,digitalkaoz/symfony,pamil/symfony,MisatoTremor/symfony,bburnichon/symfony,d-ph/symfony,andrerom/symfony,natechicago/symfony,k0pernikus/symfony,Restless-ET/symfony,Triiistan/symfony,chrisguitarguy/symfony,MAXakaWIZARD/symfony,k0pernikus/symfony,tekjava/symfony,zcodes/symfony,zerustech/symfony,pierredup/symfony,tucksaun/symfony,zerkms/symfony,peterjmit/symfony,peterjmit/symfony,tecnocat/symfony,geoffrey-brier/symfony,stof/symfony,lemoinem/symfony,weaverryan/symfony,WouterJ/symfony,MisatoTremor/symfony,jeremyFreeAgent/symfony,mmauri04/symfony,raziel057/symfony,Soullivaneuh/symfony,romainneutron/symfony,tecnocat/symfony,jderusse/symfony,sroze/symfony,havvg/symfony,lemoinem/symfony,natechicago/symfony,joelwurtz/symfony,davewwww/symfony,patrick-mcdougle/symfony,iltar/symfony,Rvanlaak/symfony,inso/symfony,c960657/symfony,Rvanlaak/symfony,Slamdunk/symfony,pyrech/symfony,linovarona/symfony,tekjava/symfony,zerkms/symfony,unexge/symfony,Deamon/symfony,linovarona/symfony,shieldo/symfony,chrisguitarguy/symfony,frankdejonge/symfony,smatyas/symfony,dawehner/symfony,alebo/symfony,calm10/Symfony2,sgehrig/symfony,zcodes/symfony,Strate/symfony,Strate/symfony,dunglas/symfony,patrick-mcdougle/symfony,apetitpa/symfony,cvuorinen/symfony,mihai-stancu/symfony,teohhanhui/symfony,SofHad/symfony,jderusse/symfony,1ed/symfony,Taluu/symfony,mickaelandrieu/symfony,MatTheCat/symfony,gnat42/symfony,phramz/symfony,smatyas/symfony,Padam87/symfony,jean-gui/symfony,dawehner/symfony,romainneutron/symfony,bendavies/symfony,adamelso/symfony,romainneutron/symfony,docteurklein/symfony,k0pernikus/symfony,arjenm/symfony,maidmaid/symfony,tPl0ch/symfony,peterjmit/symfony,dkarvounaris/symfony,Deamon/symfony,mweimerskirch/symfony,hason/symfony,superdav42/symfony,realityking/symfony,Rvanlaak/symfony,zorn-v/symfony,believer-ufa/symfony,gimler/symfony,bendavies/symfony,natechicago/symfony,natechicago/symfony,fabpot/symfony,phramz/symfony,peterrehm/symfony,Einenlum/symfony,calm10/Symfony2,paradajozsef/symfony,Simperfit/symfony,d-ph/symfony,jamyouss/symfony,romainneutron/symfony,SpacePossum/symfony,dbu/symfony,c960657/symfony,mihai-stancu/symfony,Slamdunk/symfony,mnapoli/symfony,curry684/symfony,gimler/symfony,jzawadzki/symfony,jamyouss/symfony,sstok/symfony,mnapoli/symfony,SaschaDens/symfony,lemoinem/symfony,bburnichon/symfony,zcodes/symfony,romaricdrigon/symfony,klandaika/symfony,dkarvounaris/symfony,hhamon/symfony,bburnichon/symfony,andreia/symfony,pamil/symfony,MisatoTremor/symfony,AlexDpy/symfony,Taluu/symfony,dmaicher/symfony,sgehrig/symfony,danionut90/symfony,docteurklein/symfony,csarrazi/symfony,ragboyjr/symfony,sstok/symfony,unexge/symfony,jzawadzki/symfony,hason/symfony,Koc/symfony,nicolas-grekas/symfony,SaschaDens/symfony,jpauli/symfony,dosten/symfony,jpauli/symfony,Amo/symfony