From 8315b48e77ed5ba42480dcec7d2882e80815a515 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 26 Nov 2009 18:24:14 -0500 Subject: [PATCH] Removing String::getInstance() as it was causing fatal errors when eAccelerator was enabled, and is a deprecated method. --- cake/libs/string.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/cake/libs/string.php b/cake/libs/string.php index 15bd9cb6ff0..10ec4cb348a 100644 --- a/cake/libs/string.php +++ b/cake/libs/string.php @@ -28,24 +28,6 @@ */ class String { -/** - * Gets a reference to the String object instance - * - * @return object String instance - * @access public - * @static - * @deprecated - */ - function &getInstance() { - trigger_error('String::getInstance() is deprecated. All String methods are called statically.', E_USER_WARNING); - static $instance = array(); - - if (!$instance) { - $instance[0] =& new String(); - } - return $instance[0]; - } - /** * Generate a random UUID *