You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
Zend\Uri\Uri::setQuery() passes array arguments directly to http_build_query(), which silently discards values which it regards to be invalid. This can cause unexpected behavior, like this:
class foo
{
public function __toString()
{
return 'bar';
}
}
$uri->setQuery(array('foo' => new foo));
// We'd expect the object to behave like a string and yield 'foo=bar', but we get '' instead
setQuery() should either validate each argument and fail if http_build_query() would treat it in an unexpected way (i.e. silently discard), or try to cast it to a string, which would cause an error if that is not possible.
The text was updated successfully, but these errors were encountered:
Zend\Uri\Uri::setQuery() passes array arguments directly to http_build_query(), which silently discards values which it regards to be invalid. This can cause unexpected behavior, like this:
setQuery() should either validate each argument and fail if http_build_query() would treat it in an unexpected way (i.e. silently discard), or try to cast it to a string, which would cause an error if that is not possible.
The text was updated successfully, but these errors were encountered: