FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16326&edit=1

ID: 16326
Updated by: pear@11abacus.com
Reported By: sam at archives dot org dot au
Summary: image() doesn't return error on unknown format.
-Status: Open
+Status: Feedback
Type: Bug
Package: Image_GraphViz
Operating System: Linux
Package Version: 1.2.1
PHP Version: 5.2.5
Roadmap Versions:
New Comment:

-Status: Open
+Status: Feedback
Thank you for taking the time to report a problem with the package.
Unfortunately you are not using a current version of the package --
the problem might already be fixed. Please download a new
version from http://pear.php.net/packages.php

If you are able to reproduce the bug with one of the latest
versions, please change the package version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PEAR.

Duplicate to Request #12913

Fixed in 1.3.0RC3


Previous Comments:
------------------------------------------------------------------------

[2009-06-15 04:54:45] samwilson

Description:
------------
image() should return "TRUE on success, FALSE or PEAR_Error otherwise",
but when an unrecognised format string is passed to it, it doesn't.

Test script:
---------------
<?php
require_once 'Image/GraphViz.php';
$gv = new Image_GraphViz(true, array(), 'G', true, true);
$out = $gv->image('unrecognised_format');
var_dump($out);


Expected result:
----------------
object(PEAR_Error)#1 (8) { ... }

Actual result:
--------------
NULL

------------------------------------------------------------------------

Search Discussions

  • Pear at Dec 6, 2009 at 4:44 am
    Edit report at http://pear.php.net/bugs/bug.php?id=16326&edit=1

    ID: 16326
    Updated by: pear@11abacus.com
    Reported By: sam at archives dot org dot au
    Summary: image() doesn't return error on unknown format.
    -Status: Feedback
    +Status: Closed
    Type: Bug
    Package: Image_GraphViz
    Operating System: Linux
    Package Version: 1.2.1
    PHP Version: 5.2.5
    -Assigned To:
    +Assigned To: jausions
    Roadmap Versions:
    New Comment:

    -Status: Feedback
    +Status: Closed
    -Assigned To:
    +Assigned To: jausions



    Previous Comments:
    ------------------------------------------------------------------------

    [2009-12-06 05:44:04] jausions

    -Status: Open
    +Status: Feedback
    Thank you for taking the time to report a problem with the package.
    Unfortunately you are not using a current version of the package --
    the problem might already be fixed. Please download a new
    version from http://pear.php.net/packages.php

    If you are able to reproduce the bug with one of the latest
    versions, please change the package version on this bug report
    to the version you tested and change the status back to "Open".
    Again, thank you for your continued support of PEAR.

    Duplicate to Request #12913

    Fixed in 1.3.0RC3

    ------------------------------------------------------------------------

    [2009-06-15 04:54:45] samwilson

    Description:
    ------------
    image() should return "TRUE on success, FALSE or PEAR_Error otherwise",
    but when an unrecognised format string is passed to it, it doesn't.

    Test script:
    ---------------
    <?php
    require_once 'Image/GraphViz.php';
    $gv = new Image_GraphViz(true, array(), 'G', true, true);
    $out = $gv->image('unrecognised_format');
    var_dump($out);


    Expected result:
    ----------------
    object(PEAR_Error)#1 (8) { ... }

    Actual result:
    --------------
    NULL

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 6, '09 at 4:44a
activeDec 6, '09 at 4:44a
posts2
users1
websitepear.php.net

1 user in discussion

Pear: 2 posts

People

Translate

site design / logo © 2022 Grokbase