Exemplo n.º 1
0
<?php

require_once 'test_base.inc';
requestAll(array("test_status.php", "test_get.php?name=Foo", "test_get.php?name=Bar", "apc_apache_note.php", "apc_apache_note.php", "apc_apache_note.php", "test_cookie.php?cookie_name=asdf&cookie_value=foo&cookie_path=BAR", "test_cookie.php?cookie_name=as%0d%0adf&cookie_value=foo&cookie_path=BAR", "test_cookie.php?cookie_name=asdf&cookie_value=f%0d%0aoo&cookie_path=BAR", "test_cookie.php?cookie_name=asdf&cookie_value=foo&cookie_path=B%0d%0aAR", "test_cookie.php?cookie_name=asdf&cookie_value=foo&cookie_domain=B%0d%0aAR", "test_cookie.php?cookie_name=asdf&cookie_value=foo=bar", "test_cookie.php?cookie_name=asdf&cookie_value=foo&cookie_path=B=AR", "test_header.php?test_string=foo", "test_header.php?test_string=f%0d%0aoo", array("test_duplicate_headers.php", null, array('xyzzy' => 42, 'XyZZy' => 43, 'XYZZY' => 44, 'xxxxx' => 45)), "test_curl_multi_except.php", "test_pagelet.php"));
Exemplo n.º 2
0
requestAll(array(
  "test_get.php?name=Foo",
  "test_get.php?name=Bar",
  "apc_apache_note.php",
  "apc_apache_note.php",
  "apc_apache_note.php",
  // This is expected to pass.
  "test_cookie.php?cookie_name=asdf&cookie_value=foo&cookie_path=BAR",
  // This is expected to fatal due to embedded newline in the cookie name.
  "test_cookie.php?cookie_name=as%0d%0adf&cookie_value=foo&cookie_path=BAR",
  // This will pass even though there is a newline in the value.
  // It is only checked under certain circumstances.
  "test_cookie.php?cookie_name=asdf&cookie_value=f%0d%0aoo&cookie_path=BAR",
  // This is expected to fatal due to embedded newline in the cookie path.
  "test_cookie.php?cookie_name=asdf&cookie_value=foo&cookie_path=B%0d%0aAR",
  // This is expected to fatal due to embedded newline in the cookie domain.
  "test_cookie.php?cookie_name=asdf&cookie_value=foo&cookie_domain=B%0d%0aAR",
  // This is expected to pass.
  "test_cookie.php?cookie_name=asdf&cookie_value=foo=bar",
  // This is expected to pass.
  "test_cookie.php?cookie_name=asdf&cookie_value=foo&cookie_path=B=AR",
  // This is expected to pass.
  "test_header.php?test_string=foo",
  // This is expected to fatal due to embedded newline in the header.
  "test_header.php?test_string=f%0d%0aoo",
  array(
    "test_duplicate_headers.php", null, array(
      'xyzzy' => 42, 'XyZZy' => 43, 'XYZZY' => 44, 'xxxxx' => 45
    )
  )
));
Exemplo n.º 3
0
<?php

require_once 'test_base.inc';
// Limit the server to 1 thread only to ensure that both requests are served by
// the same thread
$customArgs = "-d hhvm.server.thread_count=1";
// Test static content request before the creation of any HPHP sessions
requestAll(array("static_content.txt", "test_get.php?name=Foo"), $customArgs);
// Test static content request after a HPHP session has terminated
requestAll(array("test_get.php?name=Foo", "static_content.txt"), $customArgs);
Exemplo n.º 4
0
<?php

require_once 'test_base.inc';
requestAll(array("test_get.php?name=Foo", "test_get.php?name=Bar", "apc_apache_note.php", "apc_apache_note.php", "apc_apache_note.php"));
Exemplo n.º 5
0
<?php

require_once 'test_base.inc';
requestAll(array("test_get.php?name=Foo", "test_get.php?name=Bar", "subdoc//subdir/test.php", "subdoc/subdir/test.php"));