Using parse_url in OAuth->get_normalized_http_url on localhost setup in PHP 5.3.14

eg. the url
http://localhost:10088/projectname/rest/service/endpoint

results in this parsed array (by parse_url())

array ( 'scheme' => 'http', 'host' => 'localhost:10088', 'port' => 10088, 'path' => '/projectname/rest/service/endpoint', )

effectively returning

http://localhost:10088:10088/projectname/rest/service/endpoint