Add bug #55504 fix from PHP.NET to rfc1867.c