📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-02 20:27:03
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php81-pecl-imagick_3.8.1-17.el8
/
tests
📍 /opt/alt/tests/alt-php81-pecl-imagick_3.8.1-17.el8/tests
🔄 Refresh
✏️
Editing: 012-clone-separation.phpt
Read Only
--TEST-- Testing that cloned object does not affect the original --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?> --FILE-- <?php $im = new Imagick(); $im->newImage(100, 100, new ImagickPixel("white")); $new = clone $im; $new->thumbnailImage(200, null); var_dump($im->width, $new->width); $new2 = $im->clone(); $new2->thumbnailImage(200, null); var_dump($im->width, $new2->width); ?> --EXPECTF-- int(100) int(200) %s: Imagick::clone method is deprecated and it's use should be avoided in %s on line %d int(100) int(200)
💾 Save Changes
❌ Cancel