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