1--TEST--
2GdImage instances must not be serialized
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7
8    $img_src = imagecreatetruecolor(32, 32);
9    var_dump(serialize($img_src));
10
11?>
12--EXPECTF--
13Fatal error: Uncaught Exception: Serialization of 'GdImage' is not allowed in %s:%d
14Stack trace:
15#0 %s(%d): serialize(Object(GdImage))
16#1 {main}
17  thrown in %s on line %d
18