php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59688 Imagick::__toString is undocumented
Submitted: 2011-03-26 05:48 UTC Modified: 2015-01-09 19:47 UTC
From: giecrilj at stegny dot 2a dot pl Assigned: mkoppanen (profile)
Status: Closed Package: imagick (PECL)
PHP Version: 5.3.5 OS: GNU/Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: giecrilj at stegny dot 2a dot pl
New email:
PHP Version: OS:

 

 [2011-03-26 05:48 UTC] giecrilj at stegny dot 2a dot pl
Description:
------------
Imagick::__toString is undocumented; this makes examples
like <?php echo $image; ?> undefined behaviour.

Reproduce code:
---------------
http://pl2.php.net/manual/en/function.imagick-setfirstiterator.php

Expected result:
----------------
bool tintImage ( mixed $tint , mixed $opacity )
string __toString ()
Imagick transformImage ( string $crop , string $geometry )


Actual result:
--------------
bool tintImage ( mixed $tint , mixed $opacity )
Imagick transformImage ( string $crop , string $geometry )


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-03 11:31 UTC] mike@php.net
-Assigned To: +Assigned To: mkoppanen
 [2015-01-09 19:47 UTC] danack@php.net
-Status: Assigned +Status: Closed
 [2015-01-09 19:47 UTC] danack@php.net
I've added it to the documentation. It will take some time to roll out to all mirrors.

Also, I personally think using $imagick->getImageBlob(), $imagick->getImagesBlob() is better as it's more explicit.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 14:01:31 2025 UTC