ok
Direktori : /opt/cpanel/ea-php56/root/usr/share/tests/pecl/imagick/tests/ |
Current File : //opt/cpanel/ea-php56/root/usr/share/tests/pecl/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