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::__toString() - ensure dynamic property with same name as inheri..
Decoded Output download
--TEST--
ReflectionObject::__toString() - ensure dynamic property with same name as inherited private property is shown.
--FILE--
<?php
class C {
private $p = 1;
}
class D extends C{
}
$Obj = new D;
$Obj->p = 'value';
echo new ReflectionObject($Obj);
?>
--EXPECTF--
Object of class [ <user> class D extends C ] {
@@ %s 6-7
- Constants [0] {
}
- Static properties [0] {
}
- Static methods [0] {
}
- Properties [0] {
}
- Dynamic properties [0] {
}
- Methods [0] {
}
}
Did this file decode correctly?
Original Code
--TEST--
ReflectionObject::__toString() - ensure dynamic property with same name as inherited private property is shown.
--FILE--
<?php
class C {
private $p = 1;
}
class D extends C{
}
$Obj = new D;
$Obj->p = 'value';
echo new ReflectionObject($Obj);
?>
--EXPECTF--
Object of class [ <user> class D extends C ] {
@@ %s 6-7
- Constants [0] {
}
- Static properties [0] {
}
- Static methods [0] {
}
- Properties [0] {
}
- Dynamic properties [0] {
}
- Methods [0] {
}
}
Function Calls
None |
Stats
MD5 | df0c590cad13f382025d50f286dfc842 |
Eval Count | 0 |
Decode Time | 67 ms |