1--TEST--
2Testing that cloned object does not affect the original
3--SKIPIF--
4<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
5--FILE--
6<?php
7$im = new Imagick();
8$im->newImage(100, 100, new ImagickPixel("white"));
9
10$new = clone $im;
11$new->thumbnailImage(200, null);
12var_dump($im->width, $new->width);
13
14$new2 = $im->clone();
15$new2->thumbnailImage(200, null);
16var_dump($im->width, $new2->width);
17
18?>
19--EXPECTF--
20int(100)
21int(200)
22
23%s: Imagick::clone method is deprecated and it's use should be avoided in %s on line %d
24int(100)
25int(200)