PageRenderTime 25ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://github.com/facebook/hiphop-php
PHP | 27 lines | 21 code | 6 blank | 0 comment | 0 complexity | c72745e4c71f45513acc7a9488d97d45 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. <<__EntryPoint>> function main(): void {
  3. HH\autoload_set_paths(
  4. dict[
  5. 'class' => dict[
  6. 'autoload_interface' => 'autoload_interface.p5c',
  7. 'autoload_implements' => 'autoload_implements.p5c',
  8. ],
  9. ],
  10. __DIR__.'/',
  11. );
  12. var_dump(interface_exists('autoload_interface', false));
  13. var_dump(class_exists('autoload_implements', false));
  14. $o = unserialize('O:19:"Autoload_Implements":0:{}');
  15. var_dump($o);
  16. var_dump($o is autoload_interface);
  17. unset($o);
  18. var_dump(interface_exists('autoload_interface', false));
  19. var_dump(class_exists('autoload_implements', false));
  20. echo "===DONE===\n";
  21. }