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-- ReflectionObject::isInternal() - basic function test --FILE-- <?php class C { } ..

Decoded Output download

--TEST--
ReflectionObject::isInternal() - basic function test
--FILE--
<?php
class C {
}

$r1 = new ReflectionObject(new stdClass);
$r2 = new ReflectionObject(new ReflectionClass('C'));
$r3 = new ReflectionObject(new ReflectionProperty('Exception', 'message'));
$r4 = new ReflectionObject(new Exception);
$r5 = new ReflectionObject(new C);

var_dump($r1->isInternal(), $r2->isInternal(), $r3->isInternal(),
         $r4->isInternal(), $r5->isInternal());

?>
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(true)
bool(false)

Did this file decode correctly?

Original Code

--TEST--
ReflectionObject::isInternal() - basic function test
--FILE--
<?php
class C {
}

$r1 = new ReflectionObject(new stdClass);
$r2 = new ReflectionObject(new ReflectionClass('C'));
$r3 = new ReflectionObject(new ReflectionProperty('Exception', 'message'));
$r4 = new ReflectionObject(new Exception);
$r5 = new ReflectionObject(new C);

var_dump($r1->isInternal(), $r2->isInternal(), $r3->isInternal(),
         $r4->isInternal(), $r5->isInternal());

?>
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(true)
bool(false)

Function Calls

None

Variables

None

Stats

MD5 c804d1706c4239cfaf7b60d7c30f588f
Eval Count 0
Decode Time 77 ms