HEX
Server: Apache
System: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User: u103727277 (3416564)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: //kunden/kunden/lib/php8.0/test/HTTP2/tests/parseLinks_rel-no-quote.phpt
--TEST--
parseLinks(): relation without quotes
--FILE--
<?php
require_once  'HTTP2.php';
$http = new HTTP2();
$links = array(
    '<http://wp.me/PEmnE-1hd>; rel=shortlink'
);
$out = var_export($http->parseLinks($links), true);
echo preg_replace('#\s+\n#', "\n", $out);
?>
--EXPECT--
array (
  0 =>
  array (
    '_uri' => 'http://wp.me/PEmnE-1hd',
    'rel' =>
    array (
      0 => 'shortlink',
    ),
  ),
)