From cdbc9b4adb770049496010909037b382f11b5e34 Mon Sep 17 00:00:00 2001 From: Mikael Roos Date: Wed, 3 Dec 2014 15:42:49 +0100 Subject: [PATCH] correcting issue with PHP 5.3 where array is used as constant --- CImage.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/CImage.php b/CImage.php index edfe44e..5a14609 100644 --- a/CImage.php +++ b/CImage.php @@ -50,21 +50,31 @@ class CImage /** * Default background color, red, green, blue, alpha. + * + * @todo remake when upgrading to PHP 5.5 */ + /* const BACKGROUND_COLOR = array( 'red' => 0, 'green' => 0, 'blue' => 0, 'alpha' => null, - ); + );*/ /** * Default background color to use. + * + * @todo remake when upgrading to PHP 5.5 */ - private $bgColorDefault = self::BACKGROUND_COLOR; - + //private $bgColorDefault = self::BACKGROUND_COLOR; + private $bgColorDefault = array( + 'red' => 0, + 'green' => 0, + 'blue' => 0, + 'alpha' => null, + ); /**