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

Request #2354 save() should return TRUE/FALSE
Submitted: 2004-09-17 08:17 UTC Modified: 2004-09-20 09:31 UTC
From: powtac at gmx dot de Assigned:
Status: Bogus Package: Image_Transform
PHP Version: 5.0.1 OS: Win 2000
Roadmaps: (Not assigned)    
Subscription  


 [2004-09-17 08:17 UTC] powtac at gmx dot de
Description: ------------ It would be nice it the save()-function of Image_Transform_Driver_GD and Image_Transform_Driver_Imagick and ... returns bool(TRUE) on success and bool(FLASE) for fails. Reproduce code: --------------- require_once("Image/Transform.php"); $Pic=&Image_Transform::factory("GD"); $Pic->load('normal.jpg'); $Pic->scaleByLength(100); vardump($Pic->save('test.jpg')); Expected result: ---------------- TRUE / FALSE Actual result: -------------- NULL

Comments

 [2004-09-17 08:19 UTC] powtac at gmx dot de
Last line in "Reproduce code" should be: var_dump($Pic->save('test.jpg'));
 [2004-09-20 09:31 UTC] jausions
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. The proper returned values are either TRUE or a PEAR_Error object.