Subject: | Documentation for Net::SIP::Util::sip_uri2parts() is wrong. |
sip_uri2parts is documented as returning (DOMAIN, USER, PROTO, DATA, PARAM) in array context but actually returns (DOMAIN, USER, PROTO, PARAM, DATA) - ie PARAM and DATA are swapped.
In my opinion the documentation is wrong and the code is returning them in a more sensible order. Also updating the documentation will avoid breaking any code which is already relying on the current behaviour.