1--TEST--
2Checks that GdImage instances cannot be cloned
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7
8    $img_src = imagecreatetruecolor(32, 32);
9    $img_dst = clone $img_src;
10
11?>
12--EXPECTF--
13Fatal error: Uncaught Error: Trying to clone an uncloneable object of class GdImage in %s:%d
14Stack trace:
15#0 {main}
16  thrown in %s on line %d
17