Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- K2hIterator::current() member function --DESCRIPTION-- K2HASH PHP Extension libra..

Decoded Output download

--TEST--
K2hIterator::current() 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
$handle = k2hpx_open_mem();
k2hpx_set_value($handle, "test", "test-value");

$k2hiter = new K2hIterator($handle);
$value = $k2hiter->current();
echo $value;
echo ",";
unset($k2hiter);

k2hpx_set_value($handle, "test", "sub-value", "sub");

$k2hiter = new K2hIterator($handle, "test");
$value = $k2hiter->current();
echo $value;
unset($k2hiter);

k2hpx_close($handle);
?>
--EXPECT--
test-value,sub-value

Did this file decode correctly?

Original Code

--TEST--
K2hIterator::current() 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
$handle = k2hpx_open_mem();
k2hpx_set_value($handle, "test", "test-value");

$k2hiter = new K2hIterator($handle);
$value = $k2hiter->current();
echo $value;
echo ",";
unset($k2hiter);

k2hpx_set_value($handle, "test", "sub-value", "sub");

$k2hiter = new K2hIterator($handle, "test");
$value = $k2hiter->current();
echo $value;
unset($k2hiter);

k2hpx_close($handle);
?>
--EXPECT--
test-value,sub-value

Function Calls

k2hpx_open_mem 1
extension_loaded 1

Variables

None

Stats

MD5 60ec1d6d54f8474ce25fd4236cea0a81
Eval Count 0
Decode Time 110 ms