/hphp/test/zend/good/ext/standard/tests/serialize/bug30234.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
- <?hh
- <<__EntryPoint>> function main(): void {
- HH\autoload_set_paths(
- dict[
- 'class' => dict[
- 'autoload_interface' => 'autoload_interface.p5c',
- 'autoload_implements' => 'autoload_implements.p5c',
- ],
- ],
- __DIR__.'/',
- );
- var_dump(interface_exists('autoload_interface', false));
- var_dump(class_exists('autoload_implements', false));
- $o = unserialize('O:19:"Autoload_Implements":0:{}');
- var_dump($o);
- var_dump($o is autoload_interface);
- unset($o);
- var_dump(interface_exists('autoload_interface', false));
- var_dump(class_exists('autoload_implements', false));
- echo "===DONE===\n";
- }