php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71781 Gmagick::read*() methods return Gmagick, not void
Submitted: 2016-03-10 22:41 UTC Modified: 2016-03-11 10:24 UTC
From: benjamin dot morel at gmail dot com Assigned: cmb (profile)
Status: Closed Package: gmagick (PECL)
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
 [2016-03-10 22:41 UTC] 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 ] )

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-11 10:23 UTC] 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-11 10:24 UTC] cmb@php.net
-Status: Open +Status: Closed -Package: Documentation problem +Package: gmagick -Assigned To: +Assigned To: cmb
 [2016-03-11 10:24 UTC] cmb@php.net
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.
 [2020-02-07 06:07 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=90e3a967e582148cc3b1d8169c54bb78c6b94375
Log: fixed #71781 (Gmagick::read*() methods return Gmagick, not void)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 06:01:31 2024 UTC