Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.0

Bug #16326 image() doesn't return error on unknown format.
Submitted: 2009-06-15 08:54 UTC
From: samwilson Assigned: jausions
Status: Closed Package: Image_GraphViz (version 1.2.1)
PHP Version: 5.2.5 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2009-06-15 08:54 UTC] samwilson (Sam Wilson)
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

Comments

 [2009-12-06 10:44 UTC] jausions (Philippe 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-12-06 10:44 UTC] jausions (Philippe Jausions)
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: jausions