* 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 |
i | Ilfracombe_Harbour_2 |
Key | Value |
joomla | TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjE6e3M6OToiX19kZWZhdWx0IjtPOjg6InN0ZENsYXNzIjozOntzOjc6InNlc3Npb24iO086ODoic3RkQ2xhc3MiOjM6e3M6NzoiY291bnRlciI7aToxO3M6NToidGltZXIiO086ODoic3RkQ2xhc3MiOjM6e3M6NToic3RhcnQiO2k6MTcxMTY5MzcyNztzOjQ6Imxhc3QiO2k6MTcxMTY5MzcyNztzOjM6Im5vdyI7aToxNzExNjkzNzI3O31zOjU6InRva2VuIjtzOjMyOiJKaFcxVmx5czIzUjF0ZzVWYWdlVzBiVVZBSVFIakhUNSI7fXM6ODoicmVnaXN0cnkiO086MjQ6Ikpvb21sYVxSZWdpc3RyeVxSZWdpc3RyeSI6Mzp7czo3OiIAKgBkYXRhIjtPOjg6InN0ZENsYXNzIjowOnt9czoxNDoiACoAaW5pdGlhbGl6ZWQiO2I6MDtzOjk6InNlcGFyYXRvciI7czoxOiIuIjt9czo0OiJ1c2VyIjtPOjIwOiJKb29tbGFcQ01TXFVzZXJcVXNlciI6MTp7czoyOiJpZCI7aTowO319fXM6MTQ6IgAqAGluaXRpYWxpemVkIjtiOjA7czo5OiJzZXBhcmF0b3IiO3M6MToiLiI7fQ== |
Key | Value |
PATH | /usr/local/bin:/bin:/usr/bin |
HTTP_ACCEPT | */* |
HTTP_HOST | maryoldham.co.uk |
HTTP_USER_AGENT | claudebot |
HTTP_X_HTTPS | 1 |
DOCUMENT_ROOT | /home/alscottb/maryoldham.co.uk |
REMOTE_ADDR | 44.210.120.182 |
REMOTE_PORT | 56380 |
SERVER_ADDR | 77.72.1.31 |
SERVER_NAME | maryoldham.co.uk |
SERVER_ADMIN | webmaster@maryoldham.co.uk.alscottbarton.co.uk |
SERVER_PORT | 443 |
REQUEST_SCHEME | https |
REQUEST_URI | /portfolio/landscapes-local?i=Ilfracombe_Harbour_2 |
REDIRECT_URL | /portfolio/landscapes-local |
REDIRECT_QUERY_STRING | i=Ilfracombe_Harbour_2 |
REDIRECT_REQUEST_METHOD | GET |
HTTPS | on |
WP_UPDATE_PHP_URL | https://help.krystal.co.uk/cpanel/changing-your-php-version-modules-setting-and-functions |
HTTP_AUTHORIZATION | |
REDIRECT_STATUS | 200 |
X_SPDY | HTTP2 |
SSL_PROTOCOL | TLSv1.3 |
SSL_CIPHER | TLS_AES_256_GCM_SHA384 |
SSL_CIPHER_USEKEYSIZE | 256 |
SSL_CIPHER_ALGKEYSIZE | 256 |
SCRIPT_FILENAME | /home/alscottb/maryoldham.co.uk/index.php |
QUERY_STRING | i=Ilfracombe_Harbour_2 |
SCRIPT_URI | https://maryoldham.co.uk/portfolio/landscapes-local |
SCRIPT_URL | /portfolio/landscapes-local |
SCRIPT_NAME | /index.php |
SERVER_PROTOCOL | HTTP/1.1 |
SERVER_SOFTWARE | LiteSpeed |
REQUEST_METHOD | GET |
X-LSCACHE | on |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711693727.76 |
REQUEST_TIME | 1711693727 |