Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- is_callable() on abstract method via object should return false --FILE-- <?php a..

Decoded Output download

--TEST--
is_callable() on abstract method via object should return false
--FILE--
<?php

abstract class A {
    abstract function foo();
}

class B extends A {
    function foo() {}
}

$foo = [new B, 'A::foo'];
var_dump(is_callable($foo));

?>
--EXPECT--
bool(false)

Did this file decode correctly?

Original Code

--TEST--
is_callable() on abstract method via object should return false
--FILE--
<?php

abstract class A {
    abstract function foo();
}

class B extends A {
    function foo() {}
}

$foo = [new B, 'A::foo'];
var_dump(is_callable($foo));

?>
--EXPECT--
bool(false)

Function Calls

None

Variables

None

Stats

MD5 5b6e78536b572bdefd925a51b9c3583c
Eval Count 0
Decode Time 72 ms