/hphp/test/slow/serialization/1542.php
PHP | 25 lines | 23 code | 2 blank | 0 comment | 0 complexity | d73e980dd0069d51045225a2014828e3 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?hh
- class t {
- public $foo = 10;
- protected $bar = 20;
- private $derp = 30;
- }
- class t2 extends t {
- private $derp2 = 40;
- protected $bar2 = 50;
- }
- <<__EntryPoint>>
- function main_1542() {
- $x = new t;
- print_r($x);
- var_dump($x);
- echo serialize($x) . '
- ';
- $x2 = new t2;
- print_r($x2);
- var_dump($x2);
- echo serialize($x2) . '
- ';
- }