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-- K2hash::getAttrVersionInfos() member function --DESCRIPTION-- K2HASH PHP Extensio..

Decoded Output download

--TEST--
K2hash::getAttrVersionInfos() 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
// [NOTE] SKIP ERROR
// This test occasionally causes an error only when packaging ALPINE 3.18 - PHP8.1.
// The reason is unknown and we decided to skip this error.
//  In the future, once the cause is determined, this part will return to returning an error (NG).
//
//if(!extension_loaded('k2hash')) die('skip ');
//
die('skip ');
?>
--FILE--
<?php
$k2hash = new K2hash();
if(!$k2hash->openMem()){
	echo "NG";
	exit;
}
$fp = fopen("/tmp/k2hpx_print_attr_version.log", 'w');
if($k2hash->getAttrVersionInfos($fp)){
	echo "OK";
}else{
	echo "NG";
}
$k2hash->close();
?>
--EXPECT--
OK

Did this file decode correctly?

Original Code

--TEST--
K2hash::getAttrVersionInfos() 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
// [NOTE] SKIP ERROR
// This test occasionally causes an error only when packaging ALPINE 3.18 - PHP8.1.
// The reason is unknown and we decided to skip this error.
//  In the future, once the cause is determined, this part will return to returning an error (NG).
//
//if(!extension_loaded('k2hash')) die('skip ');
//
die('skip ');
?>
--FILE--
<?php
$k2hash = new K2hash();
if(!$k2hash->openMem()){
	echo "NG";
	exit;
}
$fp = fopen("/tmp/k2hpx_print_attr_version.log", 'w');
if($k2hash->getAttrVersionInfos($fp)){
	echo "OK";
}else{
	echo "NG";
}
$k2hash->close();
?>
--EXPECT--
OK

Function Calls

None

Variables

None

Stats

MD5 9d15fbfadb77a7e41ae2daa2066a3bbf
Eval Count 0
Decode Time 86 ms