PageRenderTime 35ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/good/ext/standard/tests/serialize/bug62836_1.php

http://github.com/facebook/hiphop-php
PHP | 10 lines | 8 code | 2 blank | 0 comment | 0 complexity | 6a8df04cd691132009694c2125757fcc 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 A {}
  3. class B {}
  4. <<__EntryPoint>> function main(): void {
  5. $serialized = 'O:1:"A":4:{s:1:"b";O:1:"B":0:{}s:2:"b1";r:2;s:1:"c";O:1:"B":0:{}s:2:"c1";r:4;}';
  6. print_r(unserialize($serialized));
  7. echo "okey";
  8. }