freebsd-ports/graphics/pear-Image_Canvas/files/patch-Image__Canvas.php
Martin Wilke be38e15323 - Update to 0.3.2
PR:		146453
Submitted by:	olli hauer <ohauer@gmx.de> (maintainer)
2010-06-02 16:28:38 +00:00

20 lines
743 B
PHP

--- ./Image/Canvas.php.orig 2010-05-15 11:53:04.000000000 +0200
+++ ./Image/Canvas.php 2010-05-15 11:53:51.000000000 +0200
@@ -730,7 +730,7 @@
$error = 'PHP extension ming is required for output in swf format.';
$error .= 'Please install the ming extension (http://de.php.net/ming).';
- $error =& new PEAR_Error($error);
+ $error = new PEAR_Error($error);
return $error;
}
}
@@ -742,7 +742,7 @@
$class = 'Image_Canvas_'. $canvas;
include_once 'Image/Canvas/'. str_replace('_', '/', $canvas) . '.php';
- $obj =& new $class($params);
+ $obj = new $class($params);
return $obj;
}