1--TEST-- 2Test PECL bug #20636 3--SKIPIF-- 4<?php 5 6$imageMagickRequiredVersion=0x680; 7 8require_once(dirname(__FILE__) . '/skipif.inc'); 9 10checkClassMethods('Imagick', array('roundCorners')); 11 12?> 13--FILE-- 14<?php 15// This test fails to work as expected on 32bit Ubuntu. Instead of the 16// image being created and then roundCorners failing, instead the image 17// fails to be created with the error message "unable to acquire cache 18// view `No such file or directory' @ 19// fatal/cache-view.c/AcquireAuthenticCacheView/121" 20 21$image = new Imagick(); 22$image->newImage(0, 0, '#dddddd', 'png' ); 23 24try { 25 $image->roundCorners(5, 5); 26 echo "fail\n"; 27} catch (ImagickException $e) { 28 echo "success\n"; 29} 30 31?> 32--EXPECTF-- 33Deprecated: %s Imagick::roundCorners() is deprecated in %s 34success 35