* This file is part of Twig.
*
* (c) Fabien Potencier
* (c) Armin Ronacher
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Twig\Node;
use Twig\Compiler;
use Twig\Source;
/**
* Represents a node in the AST.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class Node implements \Twig_NodeInterface
{
protected $nodes;
protected $attributes;
protected $lineno;
protected $tag;
private $name;
private $sourceContext;
/**
* @param array $nodes An array of named nodes
* @param array $attributes An array of attributes (should not be nodes)
* @param int $lineno The line number
* @param string $tag The tag name associated with the Node
*/
public function __construct(array $nodes = [], array $attributes = [], $lineno = 0, $tag = null)
{
foreach ($nodes as $name => $node) {
if (!$node instanceof \Twig_NodeInterface) {
@trigger_error(sprintf('Using "%s" for the value of node "%s" of "%s" is deprecated since version 1.25 and will be removed in 2.0.', \is_object($node) ? \get_class($node) : (null === $node ? 'null' : \gettype($node)), $name, static::class), \E_USER_DEPRECATED);
*
* @return void
*/
public function handleShutdown()
{
// If we reached this step, we are in shutdown handler.
// An exception thrown in a shutdown handler will not be propagated
// to the exception handler. Pass that information along.
$this->canThrowExceptions = false;
$error = $this->system->getLastError();
if ($error && Misc::isLevelFatal($error['type'])) {
// If there was a fatal error,
// it was not handled in handleError yet.
$this->allowQuit = false;
$this->handleError(
$error['type'],
$error['message'],
$error['file'],
$error['line']
);
}
}
/**
* @param Throwable $exception
*
* @return Inspector
*/
private function getInspector($exception)
{
return new Inspector($exception);
}
/**
* Resolves the giving handler.
*
* @param callable|HandlerInterface $handler
*
* @return HandlerInterface
}
// Propagate error to the next handler.
if ($this->platformExceptionHandler) {
call_user_func_array($this->platformExceptionHandler, [&$exception]);
}
}
/**
* Special case to deal with Fatal errors and the like.
*/
public function handleShutdown()
{
$handler = $this->whoopsShutdownHandler;
$error = $this->getLastError();
// Ignore core warnings and errors.
if ($error && !($error['type'] & (E_CORE_WARNING | E_CORE_ERROR))) {
$handler();
}
}
}
Key | Value |
nrid | 0c8d4100d6335c2e |
Key | Value |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iSm9vbWxhXENNU1xVc2VyXFVzZXIiOjE6e3M6MjoiaWQiO2k6MDt9czoxMDoiY29tX21haWx0byI7Tzo4OiJzdGRDbGFzcyI6MTp7czo1OiJsaW5rcyI7YToxOntzOjQwOiJkNTRhZWY4MGUwZTJkZDcyOTM4MzI2ZjBhODRmOTUzZTZjZDgyY2U2IjtPOjg6InN0ZENsYXNzIjoyOntzOjQ6ImxpbmsiO3M6NzQ6Imh0dHBzOi8vd3d3LnRrZWwuY28udWsvaW5kZXgucGhwL2hvbWUvY2FsZW5kYXIvZGF5Lmxpc3RldmVudHMvMjAyMi8wMy8wNy8tIjtzOjY6ImV4cGlyeSI7aToxNzExNjM5NzgxO319fX19czoxNDoiACoAaW5pdGlhbGl6ZWQiO2I6MDtzOjk6InNlcGFyYXRvciI7czoxOiIuIjt9 |
Key | Value |
PATH | /usr/local/bin:/usr/bin:/bin |
TEMP | /tmp |
TMP | /tmp |
TMPDIR | /tmp |
PWD | / |
HTTP_ACCEPT | */* |
CONTENT_LENGTH | 0 |
HTTP_HOST | www.tkel.co.uk |
HTTP_USER_AGENT | claudebot |
HTTP_X_FORWARDED_FOR | 54.205.238.173 |
HTTP_X_FORWARDED_HOST | www.tkel.co.uk |
HTTP_X_FORWARDED_PORT | 443 |
HTTP_X_FORWARDED_PROTO | https |
HTTP_X_FORWARDED_SERVER | www.tkel.co.uk |
HTTP_X_REAL_IP | 54.205.238.173 |
HTTP_X_HTTPS | 1 |
UNIQUE_ID | ZgWM5GFR1nXIszllO1-6awAAAVY |
isproxyrequest | 1 |
SCRIPT_URL | /index.php/home/calendar/day.listevents/2022/03/07/- |
SCRIPT_URI | https://www.tkel.co.uk/index.php/home/calendar/day.listevents/2022/03/07/- |
HTTPS | on |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.tkel.co.uk |
SERVER_ADDR | 149.255.58.17 |
SERVER_PORT | 443 |
REMOTE_ADDR | 54.205.238.173 |
DOCUMENT_ROOT | /home/tkelco/public_html |
REQUEST_SCHEME | https |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home/tkelco/public_html |
SERVER_ADMIN | webmaster@tkel.co.uk |
SCRIPT_FILENAME | /home/tkelco/public_html/index.php |
REMOTE_PORT | 40694 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /index.php/home/calendar/day.listevents/2022/03/07/- |
SCRIPT_NAME | /index.php |
PATH_INFO | /home/calendar/day.listevents/2022/03/07/- |
PATH_TRANSLATED | /home/tkelco/public_html/home/calendar/day.listevents/2022/03/07/- |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711639780.6382 |
REQUEST_TIME | 1711639780 |
argv | Array ( ) |
argc | 0 |