Image_Transform driver check

From: Date: Sun, 27 Apr 2008 18:53:59 +0000
Subject: Image_Transform driver check
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-49918@lists.php.net to get a copy of this message
Hello all, 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 > } Could that be changed? -- Regards/Mit freundlichen Grüßen Christian Weiske

Attachment: [application/pgp-signature] signature.asc
« previous php.pear.dev (#49918) next »