Doc #71781 [Opn->Csd]: Gmagick::read*() methods return Gmagick, not void
| From: | cmb@php.net | Date: | Fri, 11 Mar 2016 10:24:08 +0000 |
| Subject: | Doc #71781 [Opn->Csd]: Gmagick::read*() methods return Gmagick, not void | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13298@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71781&edit=1
ID: 71781
Updated by: cmb@php.net
Reported by: benjamin dot morel at gmail dot com
Summary: Gmagick::read*() methods return Gmagick, not void
-Status: Open
+Status: Closed
Type: Documentation Problem
-Package: Documentation problem
+Package: gmagick
Operating System: N/A
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2016-03-11 10:23:37] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=338726
Log: fixed #71781 (Gmagick::read*() methods return Gmagick, not void)
------------------------------------------------------------------------
[2016-03-10 22:41:58] benjamin dot morel at gmail dot com
Description:
------------
In pages:
http://php.net/manual/en/gmagick.read.php
http://php.net/manual/en/gmagick.readimage.php
http://php.net/manual/en/gmagick.readimageblob.php
http://php.net/manual/en/gmagick.readimagefile.php
Sources:
https://github.com/vitoc/gmagick/blob/master/gmagick_methods.c#L56-L75
https://github.com/vitoc/gmagick/blob/master/gmagick_methods.c#L3838-L3870
https://github.com/vitoc/gmagick/blob/master/gmagick_methods.c#L3876-L3909
Note that read() is an alias for readimage():
https://github.com/vitoc/gmagick/blob/master/gmagick.c#L1072
Expected result:
----------------
public Gmagick Gmagick::read ( string $filename )
public Gmagick Gmagick::readimage ( string $filename )
public Gmagick Gmagick::readimageblob ( string $imageContents [, string $filename ] )
public Gmagick Gmagick::readimagefile ( resource $fp [, string $filename ] )
Actual result:
--------------
public void Gmagick::read ( string $filename )
public void Gmagick::readimage ( string $filename )
public void Gmagick::readimageblob ( string $imageContents [, string $filename ] )
public void Gmagick::readimagefile ( resource $fp [, string $filename ] )
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71781&edit=1