Comment 12 for bug 1578600

@Dupre & @NetVicious: Great, thanks to you both for this quick testing. I simply backported NikiC's suggestion from SO. I will update the PHP bug, as I think we'd rather it get fixed appropriately upstream (and they will presumably add a testcase).

-Nish