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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 21:01:27 2024 UTC