[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.117.145.109: ~ $
--TEST--
Twig supports __call() for attributes
--TEMPLATE--
{{ foo.foo }}
{{ foo.bar }}
--DATA--
class TestClassForMagicCallAttributes
{
    public function getBar()
    {
        return 'bar_from_getbar';
    }

    public function __call($method, $arguments)
    {
        if ('foo' === $method) {
            return 'foo_from_call';
        }

        return false;
    }
}

return ['foo' => new TestClassForMagicCallAttributes()]
--EXPECT--
foo_from_call
bar_from_getbar

Filemanager

Name Type Size Permission Actions
_self.test File 107 B 0644
array.test File 1.55 KB 0644
array_call.test File 230 B 0644
binary.test File 489 B 0644
bitwise.test File 207 B 0644
call_argument_defined_twice.test File 229 B 0644
call_positional_arg_after_named_arg.test File 272 B 0644
comparison.test File 280 B 0644
divisibleby.test File 268 B 0644
dotdot.test File 534 B 0644
ends_with.test File 538 B 0644
floats.test File 256 B 0644
grouping.test File 110 B 0644
literals.test File 207 B 0644
magic_call.test File 475 B 0644
matches.test File 221 B 0644
method_call.test File 480 B 0644
negative_numbers.test File 174 B 0644
not_arrow_fn.test File 159 B 0644
operators_as_variables.test File 242 B 0644
postfix.test File 266 B 0644
power.test File 226 B 0644
sameas.test File 323 B 0644
starts_with.test File 569 B 0644
string_operator_as_var_assignment.test File 221 B 0644
strings.test File 201 B 0644
ternary_operator.test File 342 B 0644
ternary_operator_noelse.test File 124 B 0644
ternary_operator_nothen.test File 130 B 0644
two_word_operators_as_variables.test File 245 B 0644
unary.test File 179 B 0644
unary_macro_arguments.test File 606 B 0644
unary_precedence.test File 153 B 0644