Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Swoole; /** * * * @author Tianfeng.Han * @package SwooleSystem * @..
Decoded Output download
<?php
namespace Swoole;
/**
*
*
* @author Tianfeng.Han
* @package SwooleSystem
* @subpackage base
*/
class Env implements \ArrayAccess
{
static $default_cache_life = 600;
public $cache_prefix = 'swoole_env_';
public $swoole;
function __construct($swoole)
{
$this->swoole = $swoole;
}
function offsetGet($key)
{
return $this->swoole->cache->get($this->cache_prefix.$key);
}
function offsetSet($key,$value)
{
$this->swoole->cache->set($this->cache_prefix.$key,$value,self::$default_cache_life);
}
function offsetExists($key)
{
$v = $this->offsetGet($key);
if(is_numeric($v)) return true;
else return false;
}
function offsetUnset($key)
{
$this->swoole->cache->delete($this->cache_prefix.$key);
}
function __toString()
{
return "This is a memory Object!";
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Swoole;
/**
*
*
* @author Tianfeng.Han
* @package SwooleSystem
* @subpackage base
*/
class Env implements \ArrayAccess
{
static $default_cache_life = 600;
public $cache_prefix = 'swoole_env_';
public $swoole;
function __construct($swoole)
{
$this->swoole = $swoole;
}
function offsetGet($key)
{
return $this->swoole->cache->get($this->cache_prefix.$key);
}
function offsetSet($key,$value)
{
$this->swoole->cache->set($this->cache_prefix.$key,$value,self::$default_cache_life);
}
function offsetExists($key)
{
$v = $this->offsetGet($key);
if(is_numeric($v)) return true;
else return false;
}
function offsetUnset($key)
{
$this->swoole->cache->delete($this->cache_prefix.$key);
}
function __toString()
{
return "This is a memory Object!";
}
}
Function Calls
None |
Stats
MD5 | 36f2e195a6abeb4ecf8a77a73a4a3e6a |
Eval Count | 0 |
Decode Time | 91 ms |