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

Bug #12559 Missing include in Image/Transform.php for System.php in getTempFile()
Submitted: 2007-12-01 10:42 UTC
From: plutonio Assigned: dufuz
Status: Closed Package: Image_Transform (version 0.9.1)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 42 + 16 = ?

 
 [2007-12-01 10:42 UTC] plutonio (Tonio Carta)
Description: ------------ Method getTempFile() does not work because you have forgotten to include System.php. Just add include_once('System.php') inside the method and it will work. Test script: --------------- include("Image/Transform.php"); $tool = & Image_Transform::factory('GD'); $tool->load('/path/to/my/image.png'); /* do something, for example resize the image */ $tempFile = $tool->getTempFile(); $tool->save($tempFile, 'gif');

Comments

 [2007-12-02 20:22 UTC] dufuz (Helgi Þormar Þorbjörnsson)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.