zendframework/zf2 — pull request #3755 by SocalNick (2013-02-12 02:16:28+00:00)
Title: Fixes #2477 - Implemented optional subdomains by matching right-to-left

@DASPRID
@fatmuemoo
@ralphschindler

This fixes #2477 by matching the hostname from right-to-left. Once an optional segment is found, the rest must be optional. Existing tests have not been changed and all pass so this should have no BC break.