1<?php 2 3$canCallFourier = false; 4 5ob_start(); 6 7echo("skip failed to probe fourier functions"); 8 9try { 10 $imagick = new \Imagick(); 11 $imagick->newPseudoImage(640, 480, "magick:logo"); 12 $imagick->resizeimage(512, 512, \Imagick::FILTER_LANCZOS, 1); 13 $imagick->forwardFourierTransformImage(true); 14 $canCallFourier = true; 15} 16catch(\Exception $e) { 17 //fftw probably not available. 18} 19 20ob_end_clean(); 21 22if ($canCallFourier == false) { 23 die("skip fourier function seems unavailable"); 24} 25 26?>