1--TEST--
2imagegetclip() - basic functionality
3--SKIPIF--
4<?php
5if (!extension_loaded('gd')) die('skip ext/gd required');
6?>
7--FILE--
8<?php
9$im = imagecreate(10, 10);
10echo '=== original ===', PHP_EOL;
11var_dump(imagegetclip($im));
12imagesetclip($im, 1,2, 3,4);
13echo '=== after imagesetclip() ===', PHP_EOL;
14var_dump(imagegetclip($im));
15?>
16--EXPECT--
17=== original ===
18array(4) {
19  [0]=>
20  int(0)
21  [1]=>
22  int(0)
23  [2]=>
24  int(9)
25  [3]=>
26  int(9)
27}
28=== after imagesetclip() ===
29array(4) {
30  [0]=>
31  int(1)
32  [1]=>
33  int(2)
34  [2]=>
35  int(3)
36  [3]=>
37  int(4)
38}
39