1--TEST--
2Bug #73154: serialize object with __sleep function crash
3--FILE--
4<?php
5class a {
6    public $a;
7    public function __sleep() {
8        $this->a=null;
9        return array();
10    }
11}
12$s = 'a:1:{i:0;O:1:"a":1:{s:1:"a";R:2;}}';
13var_dump(serialize(unserialize($s)));
14?>
15--EXPECT--
16string(22) "a:1:{i:0;O:1:"a":0:{}}"
17