����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/get_flags.phpt
--TEST--
Memcached::get/getMulti() flags
--SKIPIF--
<?php include "skipif.inc";?>
--FILE--
<?php
include dirname (__FILE__) . '/config.inc';
$m = memc_get_instance ();

$key1 = uniqid('memc.test.');
$key2 = uniqid('memc.test.');

$m->set ($key1, 'hello1', 20);
$m->set ($key2, 'hello2', 20);

$value = $m->get($key1);
$extended = $m->get($key1, null, Memcached::GET_EXTENDED);

var_dump ($value);
var_dump ($extended);

$values = $m->getMulti(array ($key1, $key2), Memcached::GET_PRESERVE_ORDER);
$extended = $m->getMulti(array ($key1, $key2), Memcached::GET_EXTENDED | Memcached::GET_PRESERVE_ORDER);

var_dump ($values);
var_dump ($extended);
echo "OK";

--EXPECTF--
string(6) "hello1"
array(3) {
  ["value"]=>
  string(6) "hello1"
  ["cas"]=>
  int(%d)
  ["flags"]=>
  int(0)
}
array(2) {
  ["memc.test.%s"]=>
  string(6) "hello1"
  ["memc.test.%s"]=>
  string(6) "hello2"
}
array(2) {
  ["memc.test.%s"]=>
  array(3) {
    ["value"]=>
    string(6) "hello1"
    ["cas"]=>
    int(%d)
    ["flags"]=>
    int(0)
  }
  ["memc.test.%s"]=>
  array(3) {
    ["value"]=>
    string(6) "hello2"
    ["cas"]=>
    int(%d)
    ["flags"]=>
    int(0)
  }
}
OK

ZeroDay Forums Mini