Skip to content

Commit

Permalink
Fix issues from issue2448
Browse files Browse the repository at this point in the history
  • Loading branch information
gmponos committed Dec 11, 2019
1 parent b2ac9b8 commit ac35aed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,11 @@ function _current_time()
* @return UriInterface
* @internal
*/
function _idn_uri_convert(UriInterface $uri, $options = IDNA_DEFAULT)
function _idn_uri_convert(UriInterface $uri, $options = 0)
{
if ($uri->getHost()) {
$asciiHost = idn_to_ascii($uri->getHost(), $options, INTL_IDNA_VARIANT_UTS46, $info);
$variant = defined('INTL_IDNA_VARIANT_UTS46') ? INTL_IDNA_VARIANT_UTS46 : null;
$asciiHost = idn_to_ascii($uri->getHost(), $options, $variant, $info);
if ($asciiHost === false) {
$errorBitSet = isset($info['errors']) ? $info['errors'] : 0;

Expand Down

0 comments on commit ac35aed

Please sign in to comment.