1--TEST--
2Serialize() must return a string or NULL
3--FILE--
4<?php
5Class C implements Serializable {
6    public function serialize() {
7        return $this;
8    }
9
10    public function unserialize($blah) {
11    }
12}
13
14try {
15    var_dump(serialize(new C));
16} catch (Exception $e) {
17    echo $e->getMessage(). "\n";
18}
19
20echo "Done";
21?>
22--EXPECT--
23C::serialize() must return a string or NULL
24Done
25