PHP implementation of cookie domain matching specified in RFC6265