Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Cloning raised "Can not process empty Imagick object" error. #10

Merged
merged 1 commit into from

2 participants

@tmihalik

No description provided.

@shadowhand shadowhand merged commit 786e191 into kohana:3.4/develop
@tmihalik

Thank you!

@tmihalik tmihalik deleted the tmihalik:3.4/develop branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 1 deletion.
  1. +7 −1 classes/Kohana/Image/Imagick.php
View
8 classes/Kohana/Image/Imagick.php
@@ -331,4 +331,10 @@ protected function _get_imagetype($extension)
return array($format, $type);
}
-} // End Kohana_Image_Imagick
+
+ public function __clone()
+ {
+ // Force a copy of this->im, otherwise it will point to same object.
+ $this->im = clone $this->im;
+ }
+} // End Kohana_Image_Imagick
Something went wrong with that request. Please try again.