http_build_url
http_build_url copied to clipboard
Maybe a bug - http_build_url([ 'user' => 'abc', 'pass' => 123]);
Hello, I'm sorry, I don't know if this is a real bug, and if the original function (of pecl) has same output, i never work with it
Anyway:
http_build_url([ 'user' => 'abc', 'pass' => 123]);
abc:123@/
I'm not sure if @/ are correct for output... Can something check in original pecl version ?
Do you ad the test case for this related issue?
Thanks.
Technically I believe the original PECL implementation would attempt to detect the scheme, host, and path of the current request and use those values as defaults to always return a URL with those values present, but I personally object to that behaviour and the implementation in Winter CMS returns abc:123@ for the provided input.