mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Removing String::getInstance() as it was causing fatal errors when eAccelerator was enabled, and is a deprecated method.
This commit is contained in:
parent
dc769041f3
commit
8315b48e77
1 changed files with 0 additions and 18 deletions
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue