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-- ReflectionClass::hasMethod() - error cases --CREDITS-- Robin Fernandes <robinf@ph..

Decoded Output download

--TEST--
ReflectionClass::hasMethod() - error cases
--CREDITS--
Robin Fernandes <[email protected]>
Steve Seear <[email protected]>
--FILE--
<?php
class C {
    function f() {}
}

$rc = new ReflectionClass("C");
echo "Check invalid params:
";
var_dump($rc->hasMethod(1));
var_dump($rc->hasMethod(1.5));
var_dump($rc->hasMethod(true));
?>
--EXPECT--
Check invalid params:
bool(false)
bool(false)
bool(false)

Did this file decode correctly?

Original Code

--TEST--
ReflectionClass::hasMethod() - error cases
--CREDITS--
Robin Fernandes <[email protected]>
Steve Seear <[email protected]>
--FILE--
<?php
class C {
    function f() {}
}

$rc = new ReflectionClass("C");
echo "Check invalid params:\n";
var_dump($rc->hasMethod(1));
var_dump($rc->hasMethod(1.5));
var_dump($rc->hasMethod(true));
?>
--EXPECT--
Check invalid params:
bool(false)
bool(false)
bool(false)

Function Calls

None

Variables

None

Stats

MD5 726afd201163c854eae7e3dccef85f17
Eval Count 0
Decode Time 69 ms