HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux box12.multicloud.host 4.18.0-553.52.1.el8_10.x86_64 #1 SMP Wed May 14 09:36:12 EDT 2025 x86_64
User: kashmira (1008)
PHP: 8.1.32
Disabled: NONE
Upload Files
File: //usr/local/src/imagick/tests/skipprobefourier.inc
<?php

$canCallFourier = false;

ob_start();

echo("skip failed to probe fourier functions");

try {
	$imagick = new \Imagick();
	$imagick->newPseudoImage(640, 480, "magick:logo");
	$imagick->resizeimage(512, 512, \Imagick::FILTER_LANCZOS, 1);
	$imagick->forwardFourierTransformImage(true);
	$canCallFourier = true;
}
catch(\Exception $e) {
	//fftw probably not available.
}

ob_end_clean();

if ($canCallFourier == false) {
	die("skip fourier function seems unavailable");
}

?>