Fix PHP notice when port is not specified.