|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65297 Gmagick::writeimage requires a filename whereas documentation says it's optiona
Submitted: 2013-07-19 17:14 UTC Modified: 2018-06-18 13:06 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: imprec at gmail dot com Assigned:
Status: Verified Package: gmagick (PECL)
PHP Version: Irrelevant OS: irrelevant
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: imprec at gmail dot com
New email:
PHP Version: OS:


 [2013-07-19 17:14 UTC] imprec at gmail dot com
Gmagick::writeimage documentation 
( says filename is optional. It 
should work without a filename if Gmagick::setimagefilename has been called.

it actually throws an exception if the filename is set to null. Calling the method 
withtout argument triggers a warning (Gmagick::writeimage() expects at least 1 
parameter, 0 given)

Imagick provides the same thing, see

Test script:
$gmagick = new Gmagick('duck.jpg');


$gmagick = new Gmagick('duck.jpg');


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-06-18 13:06 UTC]
-Status: Open +Status: Verified
 [2018-06-18 13:06 UTC]
That's obviously a bug, since there is code to hande the case
where filename == NULL, but zpp() expects s(tring) without !
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 10 02:03:36 2022 UTC