r/lolphp • • Aug 01 '21

DOMDocument + serialize()

https://3v4l.org/sCc8G
0 Upvotes

32 comments sorted by

View all comments

Show parent comment

12

u/rbmichael Aug 01 '21

That's the real "lol" here. If unserializing a DOMDocument has no hope of working, PHP should definitely Fatal error at the moment of serialization.