minor tweaks and optimizations: minimize function calls in _fetch_uri_string(); use constant PHP_SAPI instead of function php_sapi_name()
Merge pull request #2127 from TheDigitalOrchard/uri-lib-optimizations

minor tweaks and optimizations to URI library