Sindbad~EG File Manager

Current Path : /proc/thread-self/root/opt/cpanel/ea-php74/root/usr/share/tests/pecl/imagick/tests/
Upload File :
Current File : //proc/thread-self/root/opt/cpanel/ea-php74/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';

?>
--CLEAN--
<?php
@unlink(dirname(__FILE__) . '/__tmp_rose.jpg');
?>
--EXPECT--
success

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists