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