Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removing String::getInstance() as it was causing fatal errors when eA…
…ccelerator was enabled, and is a deprecated method.
  • Loading branch information
markstory committed Nov 26, 2009
1 parent dc76904 commit 8315b48
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions cake/libs/string.php
Expand Up @@ -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
*
Expand Down

0 comments on commit 8315b48

Please sign in to comment.