symfony/symfony — pull request #7482 by thewilkybarkid (2013-03-26 14:52:44+00:00)
Title: [DomCrawler] Keep temporary file copy file extensions

Follows on from the accidentally-deleted #6777

I've changed it as per @fabpot's suggestion so that the filename is random, but the extension (if present) is kept.