Index: image_resize_filter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image_resize_filter/image_resize_filter.module,v
retrieving revision 1.17
diff -u -r1.17 image_resize_filter.module
--- image_resize_filter.module	13 May 2009 22:50:30 -0000	1.17
+++ image_resize_filter.module	13 May 2009 23:05:08 -0000
@@ -340,7 +340,7 @@
       $result = drupal_http_request($image['original']);
       if ($result->code == 200) {
         $tmp_file = tempnam(file_directory_temp(), 'image_resize_filter_');
-        $path_info = pathinfo($image['original']);
+        $path_info = image_resize_filter_pathinfo($image['original']);
 
         $handle = fopen($tmp_file, 'w');
         fwrite($handle, $result->data);
@@ -353,7 +353,7 @@
       }
     }
     else {
-      $path_info = pathinfo($image['local_path']);
+      $path_info = image_resize_filter_pathinfo($image['local_path']);
       $file_directory_path = file_directory_path();
       $local_file_dir = preg_replace('/^'. preg_quote($file_directory_path, '/') .'\/?/', '', $path_info['dirname']);
       $local_file_dir = !empty($local_file_dir) ? $local_file_dir . '/' : '';
@@ -431,7 +431,7 @@
 function image_resize_filter_delete_derivatives($original_filepath) {
 
   // First delete all derivatives in the saved file location.
-  $path_info = pathinfo($original_filepath);
+  $path_info = image_resize_filter_pathinfo($original_filepath);
   $basename = $path_info['filename'];
   $extension = $path_info['extension'];
   $file_directory_path = file_directory_path();
@@ -495,3 +495,15 @@
     rmdir($path);
   }
 }
+
+/**
+ * Utility function to return path information.
+ */
+function image_resize_filter_pathinfo($path) {
+  $info = pathinfo($path);
+  // Filename was added in PHP 5.2, add it for older PHP versions.
+  if (!isset($info['filename'])) {
+    $info['filename'] = basename($path, '.' . $info['extension']);
+  }
+  return $info;
+}
Index: image_resize_filter.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image_resize_filter/image_resize_filter.info,v
retrieving revision 1.2
diff -u -r1.2 image_resize_filter.info
--- image_resize_filter.info	27 Apr 2009 23:38:25 -0000	1.2
+++ image_resize_filter.info	13 May 2009 23:05:07 -0000
@@ -1,4 +1,3 @@
 name = Image resize filter
 description = Filter to automatically scale images to their height and width dimensions.
 core = 6.x
-php = 5.0
\ No newline at end of file
