PageRenderTime 46ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/slow/serialization/1542.php

http://github.com/facebook/hiphop-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
  1. <?hh
  2. class t {
  3. public $foo = 10;
  4. protected $bar = 20;
  5. private $derp = 30;
  6. }
  7. class t2 extends t {
  8. private $derp2 = 40;
  9. protected $bar2 = 50;
  10. }
  11. <<__EntryPoint>>
  12. function main_1542() {
  13. $x = new t;
  14. print_r($x);
  15. var_dump($x);
  16. echo serialize($x) . '
  17. ';
  18. $x2 = new t2;
  19. print_r($x2);
  20. var_dump($x2);
  21. echo serialize($x2) . '
  22. ';
  23. }