PHP 5.3 compatibility

This commit is contained in:
Garvin Hicking 2009-07-14 11:48:10 +00:00
parent 89d7dbb68a
commit 119297583f
4 changed files with 6 additions and 6 deletions

View File

@ -82,7 +82,7 @@ $GLOBALS['_PEAR_error_handler_stack'] = array();
* destructor, use error_log(), syslog() or something similar.
*
* IMPORTANT! To use the emulated destructors you need to create the
* objects by reference: $obj =& new PEAR_child;
* objects by reference: $obj = new PEAR_child;
*
* @since PHP 4.0.2
* @author Stig Bakken <ssb@php.net>

View File

@ -1092,7 +1092,7 @@ class Text_Wiki {
}
}
$this->parseObj[$rule] =& new $class($this);
$this->parseObj[$rule] = new $class($this);
}
@ -1126,7 +1126,7 @@ class Text_Wiki {
}
}
$this->renderObj[$rule] =& new $class($this);
$this->renderObj[$rule] = new $class($this);
}
@ -1157,7 +1157,7 @@ class Text_Wiki {
}
}
$this->formatObj[$format] =& new $class($this);
$this->formatObj[$format] = new $class($this);
}

View File

@ -557,7 +557,7 @@ class serendipity_plugin_api
}
// $serendipity['debug']['pluginload'][] = "Returning new $class_name($instance_id)";
$p =& new $class_name($instance_id);
$p = new $class_name($instance_id);
if (!is_null($authorid)) {
$p->serendipity_owner = $authorid;
} else {

View File

@ -619,7 +619,7 @@ class serendipity_event_textwiki extends serendipity_event
include_once S9Y_PEAR_PATH . 'Text/Wiki.php';
if (class_exists('Text_Wiki')) {
$this->wiki =& new Text_Wiki;
$this->wiki = new Text_Wiki;
$this->wiki->setFormatConf('Xhtml', 'translate', null);
$this->wiki->setFormatConf('Xhtml', 'charset', LANG_CHARSET);
} else {