1--TEST--
2Bug #64354 (Unserialize array of objects whose class can't be autoloaded fail)
3--FILE--
4<?php
5spl_autoload_register(
6    function($class) {
7        throw new Exception("Failed");
8    }
9);
10
11try {
12    var_dump(unserialize('O:1:"A":0:{}'));
13} catch (Exception $e) {
14    var_dump($e->getMessage());
15}
16
17try {
18    var_dump(unserialize('a:2:{i:0;O:1:"A":0:{}i:1;O:1:"A":0:{}}'));
19} catch (Exception $e) {
20    var_dump($e->getMessage());
21}
22?>
23--EXPECT--
24string(6) "Failed"
25string(6) "Failed"
26