Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
wiki.bernardino.org /
includes /
libs /
Delete
Unzip
Name
Size
Permission
Date
Action
composer
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
eventrelayer
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
filebackend
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
iterators
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
lockmanager
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
mime
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
objectcache
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
rdbms
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
redis
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
replacers
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
stats
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
time
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
virtualrest
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
xmp
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
APACHE-LICENSE-2.0.txt
11.09
KB
-rw-r--r--
2016-11-28 20:20
ArrayUtils.php
5.44
KB
-rw-r--r--
2016-11-28 20:20
CSSJanus.php
12.62
KB
-rw-r--r--
2010-09-21 22:11
CSSMin.php
15.02
KB
-rw-r--r--
2016-11-28 20:20
Cookie.php
5.41
KB
-rw-r--r--
2016-11-28 20:20
CookieJar.php
2.74
KB
-rw-r--r--
2016-11-28 20:20
CryptHKDF.php
8.78
KB
-rw-r--r--
2016-11-28 20:20
CryptRand.php
14.37
KB
-rw-r--r--
2016-11-28 20:20
DeferredStringifier.php
1.59
KB
-rw-r--r--
2016-11-28 20:20
ExplodeIterator.php
2.78
KB
-rw-r--r--
2016-11-28 20:20
GenericArrayObject.php
5.57
KB
-rw-r--r--
2016-11-28 20:20
HashRing.php
6.94
KB
-rw-r--r--
2016-11-28 20:20
HtmlArmor.php
1.39
KB
-rw-r--r--
2016-11-28 20:20
HttpStatus.php
3.14
KB
-rw-r--r--
2016-11-28 20:20
IEContentAnalyzer.php
25.06
KB
-rw-r--r--
2010-08-27 01:22
IEUrlExtension.php
9.02
KB
-rw-r--r--
2016-11-28 20:20
IP.php
22.32
KB
-rw-r--r--
2016-11-28 20:20
JavaScriptMinifier.php
22.24
KB
-rw-r--r--
2016-11-28 20:20
MWCryptHash.php
3.58
KB
-rw-r--r--
2016-11-28 20:20
MWMessagePack.php
5.63
KB
-rw-r--r--
2016-11-28 20:20
MapCacheLRU.php
3.88
KB
-rw-r--r--
2016-11-28 20:20
MappedIterator.php
3.3
KB
-rw-r--r--
2016-11-28 20:20
MemoizedCallable.php
4.68
KB
-rw-r--r--
2016-11-28 20:20
MessageSpecifier.php
1.21
KB
-rw-r--r--
2016-11-28 20:20
MultiHttpClient.php
15.25
KB
-rw-r--r--
2016-11-28 20:20
ObjectFactory.php
6.52
KB
-rw-r--r--
2016-11-28 20:20
ProcessCacheLRU.php
4.14
KB
-rw-r--r--
2016-11-28 20:20
README
237
B
-rw-r--r--
2016-11-28 20:20
ReplacementArray.php
2.22
KB
-rw-r--r--
2016-11-28 20:20
ReverseArrayIterator.php
2.01
KB
-rw-r--r--
2016-11-28 20:20
RiffExtractor.php
2.62
KB
-rw-r--r--
2016-11-28 20:20
StatusValue.php
8.84
KB
-rw-r--r--
2016-11-28 20:20
StringUtils.php
9.55
KB
-rw-r--r--
2016-11-28 20:20
Timing.php
5.91
KB
-rw-r--r--
2016-11-28 20:20
UDPTransport.php
3.07
KB
-rw-r--r--
2016-11-28 20:20
Xhprof.php
1.69
KB
-rw-r--r--
2016-11-28 20:20
XhprofData.php
10.68
KB
-rw-r--r--
2016-11-28 20:20
jsminplus.php
53.57
KB
-rw-r--r--
2016-11-28 20:20
Save
Rename
<?php /** * APC-backed and APCu-backed function memoization * * This class provides memoization for pure functions. A function is pure * if its result value depends on nothing other than its input parameters * and if invoking it does not cause any side-effects. * * The first invocation of the memoized callable with a particular set of * arguments will be delegated to the underlying callable. Repeat invocations * with the same input parameters will be served from APC or APCu. * * @par Example: * @code * $memoizedStrrev = new MemoizedCallable( 'range' ); * $memoizedStrrev->invoke( 5, 8 ); // result: array( 5, 6, 7, 8 ) * $memoizedStrrev->invokeArgs( array( 5, 8 ) ); // same * MemoizedCallable::call( 'range', array( 5, 8 ) ); // same * @endcode * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * * @file * @author Ori Livneh * @since 1.27 */ class MemoizedCallable { /** @var callable */ private $callable; /** @var string Unique name of callable; used for cache keys. */ private $callableName; /** * Constructor. * * @throws InvalidArgumentException if $callable is not a callable. * @param callable $callable Function or method to memoize. * @param int $ttl TTL in seconds. Defaults to 3600 (1hr). Capped at 86400 (24h). */ public function __construct( $callable, $ttl = 3600 ) { if ( !is_callable( $callable, false, $this->callableName ) ) { throw new InvalidArgumentException( 'Argument 1 passed to MemoizedCallable::__construct() must ' . 'be an instance of callable; ' . gettype( $callable ) . ' given' ); } if ( $this->callableName === 'Closure::__invoke' ) { // Differentiate anonymous functions from one another $this->callableName .= uniqid(); } $this->callable = $callable; $this->ttl = min( max( $ttl, 1 ), 86400 ); } /** * Fetch the result of a previous invocation from APC or APCu. * * @param string $key * @param bool &$success */ protected function fetchResult( $key, &$success ) { $success = false; if ( function_exists( 'apc_fetch' ) ) { return apc_fetch( $key, $success ); } elseif ( function_exists( 'apcu_fetch' ) ) { return apcu_fetch( $key, $success ); } return false; } /** * Store the result of an invocation in APC or APCu. * * @param string $key * @param mixed $result */ protected function storeResult( $key, $result ) { if ( function_exists( 'apc_store' ) ) { apc_store( $key, $result, $this->ttl ); } elseif ( function_exists( 'apcu_store' ) ) { apcu_store( $key, $result, $this->ttl ); } } /** * Invoke the memoized function or method. * * @throws InvalidArgumentException If parameters list contains non-scalar items. * @param array $args Parameters for memoized function or method. * @return mixed The memoized callable's return value. */ public function invokeArgs( array $args = [] ) { foreach ( $args as $arg ) { if ( $arg !== null && !is_scalar( $arg ) ) { throw new InvalidArgumentException( 'MemoizedCallable::invoke() called with non-scalar ' . 'argument' ); } } $hash = md5( serialize( $args ) ); $key = __CLASS__ . ':' . $this->callableName . ':' . $hash; $success = false; $result = $this->fetchResult( $key, $success ); if ( !$success ) { $result = call_user_func_array( $this->callable, $args ); $this->storeResult( $key, $result ); } return $result; } /** * Invoke the memoized function or method. * * Like MemoizedCallable::invokeArgs(), but variadic. * * @param mixed ...$params Parameters for memoized function or method. * @return mixed The memoized callable's return value. */ public function invoke() { return $this->invokeArgs( func_get_args() ); } /** * Shortcut method for creating a MemoizedCallable and invoking it * with the specified arguments. * * @param callable $callable * @param array $args * @param int $ttl */ public static function call( $callable, array $args = [], $ttl = 3600 ) { $instance = new self( $callable, $ttl ); return $instance->invokeArgs( $args ); } }