Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
php /
Twig /
Node /
Expression /
Test /
Delete
Unzip
Name
Size
Permission
Date
Action
ConstantTest.php
1.15
KB
-rw-r--r--
2023-02-08 07:49
DefinedTest.php
2.5
KB
-rw-r--r--
2023-02-08 07:49
DivisiblebyTest.php
791
B
-rw-r--r--
2023-02-08 07:49
EvenTest.php
679
B
-rw-r--r--
2023-02-08 07:49
NullTest.php
661
B
-rw-r--r--
2023-02-08 07:49
OddTest.php
676
B
-rw-r--r--
2023-02-08 07:49
SameasTest.php
752
B
-rw-r--r--
2023-02-08 07:49
Save
Rename
<?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Twig\Node\Expression\Test; use Twig\Compiler; use Twig\Node\Expression\TestExpression; /** * Checks if a variable is the exact same value as a constant. * * {% if post.status is constant('Post::PUBLISHED') %} * the status attribute is exactly the same as Post::PUBLISHED * {% endif %} * * @author Fabien Potencier <fabien@symfony.com> */ class ConstantTest extends TestExpression { public function compile(Compiler $compiler): void { $compiler ->raw('(') ->subcompile($this->getNode('node')) ->raw(' === constant(') ; if ($this->getNode('arguments')->hasNode(1)) { $compiler ->raw('get_class(') ->subcompile($this->getNode('arguments')->getNode(1)) ->raw(')."::".') ; } $compiler ->subcompile($this->getNode('arguments')->getNode(0)) ->raw('))') ; } }