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-- k2hpx_dump_full_keytable() function --DESCRIPTION-- K2HASH PHP Extension library ..

Decoded Output download

--TEST--
k2hpx_dump_full_keytable() 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
if(!file_exists("/tmp/test_k2hash.k2h")){
	k2hpx_create("/tmp/test_k2hash.k2h");
}
$handle = k2hpx_open_ro("/tmp/test_k2hash.k2h");
$fp = fopen("/tmp/k2hash_dump_full_keytable.log", 'w');
if(false !== k2hpx_dump_full_keytable($handle, $fp)){
	echo "OK";
}else{
	echo "NG";
}
fclose($fp);
k2hpx_close($handle);
?>
--EXPECT--
OK

Did this file decode correctly?

Original Code

--TEST--
k2hpx_dump_full_keytable() 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
if(!file_exists("/tmp/test_k2hash.k2h")){
	k2hpx_create("/tmp/test_k2hash.k2h");
}
$handle = k2hpx_open_ro("/tmp/test_k2hash.k2h");
$fp = fopen("/tmp/k2hash_dump_full_keytable.log", 'w');
if(false !== k2hpx_dump_full_keytable($handle, $fp)){
	echo "OK";
}else{
	echo "NG";
}
fclose($fp);
k2hpx_close($handle);
?>
--EXPECT--
OK

Function Calls

file_exists 1
k2hpx_open_ro 1
extension_loaded 1

Variables

None

Stats

MD5 c9c6f41f77315844200785c0f12c0e85
Eval Count 0
Decode Time 101 ms