Decoded Output
Download--TEST--
K2hash::removeAll() member function
--DESCRIPTION--
K2HASH PHP Extension library
Copyright 2015 Yahoo Japan Corporation.
K2HASH is key-valuew store base libraries.
K2HASH is made for the purpose of the construction of
original KVS system and the offer of the library.
The characteristic is this KVS library which Key can
layer. And can support multi-processing and multi-thread,
and is provided safely as available KVS.
For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
--SKIPIF--
<?php
if(!extension_loaded('k2hash')) die('skip ');
?>
--FILE--
<?php
$k2hash = new K2hash();
if(!$k2hash->openMem()){
echo "NG";
exit;
}
if(!$k2hash->setValue("test", "value") || !$k2hash->setValue("sub", "sub-value") || !$k2hash->addSubkey("test", "sub")){
$k2hash->close();
echo "NG";
exit;
}
if($k2hash->removeAll("test") && false === $k2hash->getValue("test") && false === $k2hash->getValue("sub")){
echo "OK";
}else{
echo "NG";
}
$k2hash->close();
?>
--EXPECT--
OK
Did this file decode correctly?
How would you describe this file?
Thank you for your feedback! This will help us detect malicious PHP files more accurately in the future.
Function Calls
| extension_loaded | 1 |
|---|
Variables
None
Stats
| MD5 | f419b2005f8caac4 |
|---|---|
| Eval Count | 0 |
| Decode Time | 95 ms |
Original Code
--TEST--
K2hash::removeAll() member function
--DESCRIPTION--
K2HASH PHP Extension library
Copyright 2015 Yahoo Japan Corporation.
K2HASH is key-valuew store base libraries.
K2HASH is made for the purpose of the construction of
original KVS system and the offer of the library.
The characteristic is this KVS library which Key can
layer. And can support multi-processing and multi-thread,
and is provided safely as available KVS.
For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
--SKIPIF--
<?php
if(!extension_loaded('k2hash')) die('skip ');
?>
--FILE--
<?php
$k2hash = new K2hash();
if(!$k2hash->openMem()){
echo "NG";
exit;
}
if(!$k2hash->setValue("test", "value") || !$k2hash->setValue("sub", "sub-value") || !$k2hash->addSubkey("test", "sub")){
$k2hash->close();
echo "NG";
exit;
}
if($k2hash->removeAll("test") && false === $k2hash->getValue("test") && false === $k2hash->getValue("sub")){
echo "OK";
}else{
echo "NG";
}
$k2hash->close();
?>
--EXPECT--
OK