|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-01-18 04:18 UTC] mkoppanen@php.net
[2013-01-18 04:23 UTC] mkoppanen@php.net
[2013-01-18 04:26 UTC] isaac at silverorange dot com
[2013-01-22 03:05 UTC] mkoppanen@php.net
[2013-09-30 05:59 UTC] mkoppanen@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: mkoppanen
[2013-09-30 05:59 UTC] mkoppanen@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ Running imagick 3.1.0RC2 Issue: Cloning Imagick object returns 0 for getImageLength() and getImageSize() This is broken with clone() method and clone keyword. Previous versions would return correct filesize. Test script: --------------- <?php $im = new Imagick('http://static.php.net/www.php.net/images/php.gif'); // Both should return filesize in bytes. echo "Original\n"; echo 'getImageLength: '.$im->getImageLength()."\n"; echo 'getImageSize: '.$im->getImageSize()."\n"; // All cases below now return 0; $cloned_im = clone $im; echo "clone Keyword\n"; echo 'getImageLength: '.$cloned_im->getImageLength()."\n"; echo 'getImageSize: '.$cloned_im->getImageSize()."\n"; $cloned_im_by_method = $im->clone(); echo "clone Method\n"; echo 'getImageLength: '.$cloned_im_by_method->getImageLength()."\n"; echo 'getImageSize: '.$cloned_im_by_method->getImageSize()."\n"; ?> Expected result: ---------------- Cloned object methods should return correct filesize. Actual result: -------------- Methods return 0 instead of correct filesize.