Updated references and submodules

This commit is contained in:
Shoghi Cervantes
2015-04-19 15:37:18 +02:00
parent c2f72ea9ac
commit 094234dc0f
19 changed files with 74 additions and 83 deletions

View File

@ -32,7 +32,7 @@ class CompressBatchedTask extends AsyncTask{
public $channel = 0;
public $targets = [];
public function __construct(&$data, array $targets, $level = 7, $channel = 0){
public function __construct($data, array $targets, $level = 7, $channel = 0){
$this->data = $data;
$this->targets = $targets;
$this->level = $level;

View File

@ -248,7 +248,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
return null;
}
private function getPacket(&$buffer){
private function getPacket($buffer){
$pid = ord($buffer{0});
if(($data = $this->network->getPacket($pid)) === null){

View File

@ -57,8 +57,8 @@ abstract class DataPacket extends \stdClass{
return $this->channel;
}
public function setBuffer(&$buffer = null, $offset = 0){
$this->buffer =& $buffer;
public function setBuffer($buffer = null, $offset = 0){
$this->buffer = $buffer;
$this->offset = (int) $offset;
}
@ -66,7 +66,7 @@ abstract class DataPacket extends \stdClass{
return $this->offset;
}
public function &getBuffer(){
public function getBuffer(){
return $this->buffer;
}
@ -81,7 +81,7 @@ abstract class DataPacket extends \stdClass{
return $len === 1 ? $this->buffer{$this->offset++} : substr($this->buffer, ($this->offset += $len) - $len, $len);
}
protected function put(&$str){
protected function put($str){
$this->buffer .= $str;
}
@ -179,7 +179,7 @@ abstract class DataPacket extends \stdClass{
return $this->get($this->getShort());
}
protected function putString(&$v){
protected function putString($v){
$this->putShort(strlen($v));
$this->put($v);
}