Removing String::getInstance() as it was causing fatal errors when eAccelerator was enabled, and is a deprecated method.

This commit is contained in:
mark_story 2009-11-26 18:24:14 -05:00
parent dc769041f3
commit 8315b48e77

View file

@ -28,24 +28,6 @@
*/ */
class String { 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 * Generate a random UUID
* *