sabre-io / uri

:earth_asia: Functions for making sense out of URIs in PHP

Home Page:http://sabre.io/uri/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undefined index port when uri is not full

dsazup opened this issue · comments

Hey, great library, currently using this in a project.

I run into an issue, when the uri is not full, for example, just contains the scheme (like "https://", or "https://hello"), it would throw undefined index 'port' error.

I fixed this by adding an isset check, will send in a pull request.