magento/magento2 — pull request #722 by DropSQL (2014-11-01 22:01:49+00:00)
Title: #720 fix for those issue

Hello,

I think it's a good fix (if I fully understood description of those task).

Test cases for testing method "parseUrl" from this fix:

```
array(4) {
'scheme' =>
string(5) "https"
'host' =>
string(14) "ssl://ebay.com"
'path' =>
string(9) "/test.txt"
'port' =>
int(443)
}
array(4) {
'scheme' =>
string(5) "https"
'host' =>
string(14) "ssl://ebay.com"
'port' =>
int(2000)
'path' =>
string(9) "/test.txt"
}
array(4) {
'scheme' =>
string(4) "http"
'host' =>
string(8) "ebay.com"
'port' =>
int(8080)
'path' =>
string(9) "/test.txt"
}
array(3) {
'scheme' =>
string(4) "file"
'host' =>
string(8) "ebay.com"
'path' =>
string(9) "/test.txt"
}
```

Thanks, Anton