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-- Reflection Bug #29828 (Interfaces no longer work) --FILE-- <?php interface Bla {..
Decoded Output download
--TEST--
Reflection Bug #29828 (Interfaces no longer work)
--FILE--
<?php
interface Bla
{
function bla();
}
class BlaMore implements Bla
{
function bla()
{
echo "Hello
";
}
}
$r = new ReflectionClass('BlaMore');
var_dump(count($r->getMethods()));
var_dump($r->getMethod('bla')->isConstructor());
var_dump($r->getMethod('bla')->isAbstract());
$o=new BlaMore;
$o->bla();
?>
--EXPECT--
int(1)
bool(false)
bool(false)
Hello
Did this file decode correctly?
Original Code
--TEST--
Reflection Bug #29828 (Interfaces no longer work)
--FILE--
<?php
interface Bla
{
function bla();
}
class BlaMore implements Bla
{
function bla()
{
echo "Hello\n";
}
}
$r = new ReflectionClass('BlaMore');
var_dump(count($r->getMethods()));
var_dump($r->getMethod('bla')->isConstructor());
var_dump($r->getMethod('bla')->isAbstract());
$o=new BlaMore;
$o->bla();
?>
--EXPECT--
int(1)
bool(false)
bool(false)
Hello
Function Calls
None |
Stats
MD5 | a18dba796f764b1ecda0365438405f0b |
Eval Count | 0 |
Decode Time | 88 ms |