Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
opt
/
php-7.2
/
share
/
test
/
imagick
/
tests
/
//proc/thread-self/root/opt/php-7.2/share/test/imagick/tests/013-read-filehandle.phpt
--TEST-- Imagick::readImageFile test --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); checkFormatPresent('jpg'); ?> --FILE-- <?php $file = dirname(__FILE__) . '/__tmp_rose.jpg'; $imagick = new Imagick('magick:rose'); $imagick->setImageFormat('jpg'); $imagick->writeImage($file); $imagick->clear(); $handle = fopen($file, 'rb'); $imagick->readImageFile($handle); unlink($file); echo 'success'; ?> --EXPECT-- success