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::hasProperty --FILE-- <?php class Foo { public $p1; p..
Decoded Output download
--TEST--
ReflectionObject::hasProperty
--FILE--
<?php
class Foo {
public $p1;
protected $p2;
private $p3;
function __isset($name) {
var_dump($name);
return false;
}
}
$obj = new ReflectionObject(new Foo());
var_dump($obj->hasProperty("p1"));
var_dump($obj->hasProperty("p2"));
var_dump($obj->hasProperty("p3"));
var_dump($obj->hasProperty("p4"));
?>
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(false)
Did this file decode correctly?
Original Code
--TEST--
ReflectionObject::hasProperty
--FILE--
<?php
class Foo {
public $p1;
protected $p2;
private $p3;
function __isset($name) {
var_dump($name);
return false;
}
}
$obj = new ReflectionObject(new Foo());
var_dump($obj->hasProperty("p1"));
var_dump($obj->hasProperty("p2"));
var_dump($obj->hasProperty("p3"));
var_dump($obj->hasProperty("p4"));
?>
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(false)
Function Calls
None |
Stats
MD5 | f993eadf9e92e2a519b2f364a8c645fc |
Eval Count | 0 |
Decode Time | 88 ms |