/www/wwwroot/154.218.168.34/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcuCache.php
use function apcu_clear_cache;
use function apcu_delete;
use function apcu_exists;
use function apcu_fetch;
use function apcu_sma_info;
use function apcu_store;
use function count;
class ApcuCache extends CacheProvider
{
protected function doFetch($id)
{
return apcu_fetch($id);
}
protected function doContains($id)
{
return apcu_exists($id);
}
protected function doSave($id, $data, $lifeTime = 0)
{
return apcu_store($id, $data, $lifeTime);
}
protected function doDelete($id)
{
return apcu_delete($id) || !apcu_exists($id);
}
protected function doDeleteMultiple(array $keys)
{
$result = apcu_delete($keys);
return $result !== false && count($result) !== count($keys);
}
protected function doFlush()
{
return apcu_clear_cache();
}
protected function doFetchMultiple(array $keys)
{
return apcu_fetch($keys) ?: [];
}
protected function doSaveMultiple(array $keysAndValues, $lifetime = 0)
{
Arguments
"Allowed memory size of 134217728 bytes exhausted (tried to allocate 28216062 bytes)"
/www/wwwroot/154.218.168.34/vendor/filp/whoops/src/Whoops/Run.php
return true;
}
}
$exception = new ErrorException($message, $level, $level, $file, $line);
if ($this->canThrowExceptions) {
throw $exception;
} else {
$this->handleException($exception);
}
return true;
}
return false;
}
public function handleShutdown()
{
$this->canThrowExceptions = false;
$error = $this->system->getLastError();
if ($error && Misc::isLevelFatal($error['type'])) {
$this->allowQuit = false;
$this->handleError($error['type'], $error['message'], $error['file'], $error['line']);
}
}
public function setInspectorFactory(InspectorFactoryInterface $factory)
{
$this->inspectorFactory = $factory;
}
public function addFrameFilter($filterCallback)
{
if (!is_callable($filterCallback)) {
throw new \InvalidArgumentException(sprintf("A frame filter must be of type callable, %s type given.", gettype($filterCallback)));
}
$this->frameFilters[] = $filterCallback;
return $this;
}
private function getInspector($exception)
{
return $this->inspectorFactory->create($exception);
}
private function resolveHandler($handler)
{
/www/wwwroot/154.218.168.34/system/src/Grav/Common/Errors/SystemFacade.php
<?php
namespace Grav\Common\Errors;
class SystemFacade extends \Whoops\Util\SystemFacade
{
protected $whoopsShutdownHandler;
public function registerShutdownFunction(callable $function)
{
$this->whoopsShutdownHandler = $function;
register_shutdown_function([$this, 'handleShutdown']);
}
public function handleShutdown()
{
$error = $this->getLastError();
if ($error && !($error['type'] & (E_CORE_WARNING | E_CORE_ERROR))) {
$handler = $this->whoopsShutdownHandler;
$handler();
}
}
public function setHttpResponseCode($httpCode)
{
if (!headers_sent()) {
header_remove('location');
header_remove('Content-Encoding');
}
return http_response_code($httpCode);
}
}