zendframework/zf2 — pull request #566 by JeffRMoore (2011-11-05 22:03:32+00:00)
Title: Feature/url parsing optimization

These changes center around the \Zend\Uri\Uri parse method.

Replaced parse method in public interface with setFromString method. parse would not clear previous url parts before setting new ones, setFromString does. Other Uri part setting methods use the set* naming convention, the name change is to highlight that parts are being set.

Added setFromUri and clear utility methods, used by the constructor and setFromString, respectively.

Consolidated regular expressions and string processing in parse method to more clearly correspond to regexp parsing description in RFC and improve performance.

Remove no-longer used public parseScheme method. (No other Uri parts get their own public parse method)