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

Bug #13784 driver load check does not work
Submitted: 2008-04-28 07:55 UTC
From: cweiske Assigned: cweiske
Status: Closed Package: Image_Transform (version 0.9.1)
PHP Version: 5.2.5 OS:
Roadmaps: (Not assigned)    

 [2008-04-28 07:55 UTC] cweiske (Christian Weiske)
Description: ------------ Image_Transform tries to check if a driver exists by doing > $file = 'Image/Transform/Driver/' . $driver . '.php'; > if (!is_readable($file)) { > //throw error > } This is totally incorrect! is_readable does not check in the include path, only locally. The right way - in my opinion - is to use fopen with the use_include_path option set to true: > if (!@fclose(@fopen($file, 'r', true))) { > //throw error > }


 [2008-04-28 20:59 UTC] cweiske (Christian Weiske)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the 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.