1--TEST--
2Bug #30234 (__autoload() not invoked for interfaces)
3--SKIPIF--
4<?php
5	if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already');
6?>
7--FILE--
8<?php
9
10spl_autoload_register(function ($class_name) {
11	require_once(dirname(__FILE__) . '/' . strtolower($class_name) . '.p5c');
12	echo __FUNCTION__ . '(' . $class_name . ")\n";
13});
14
15var_dump(interface_exists('autoload_interface', false));
16var_dump(class_exists('autoload_implements', false));
17
18$o = unserialize('O:19:"Autoload_Implements":0:{}');
19
20var_dump($o);
21var_dump($o instanceof autoload_interface);
22unset($o);
23
24var_dump(interface_exists('autoload_interface', false));
25var_dump(class_exists('autoload_implements', false));
26
27?>
28===DONE===
29--EXPECTF--
30bool(false)
31bool(false)
32{closure}(autoload_interface)
33{closure}(Autoload_Implements)
34object(autoload_implements)#%d (0) {
35}
36bool(true)
37bool(true)
38bool(true)
39===DONE===
40