xref: /PHP-7.2/tests/classes/autoload_020.phpt (revision 7af945e2)
1--TEST--
2Ensure __autoload() is triggered during unserialization.
3--FILE--
4<?php
5spl_autoload_register(function ($name) {
6  echo "in autoload: $name\n";
7});
8
9var_dump(unserialize('O:1:"C":0:{}'));
10?>
11--EXPECTF--
12in autoload: C
13object(__PHP_Incomplete_Class)#%d (1) {
14  ["__PHP_Incomplete_Class_Name"]=>
15  string(1) "C"
16}
17