Fix PHP error "Only variables should be passed by reference"

This commit is contained in:
kaetemi 2014-11-08 00:29:50 +01:00
parent 04c57350d9
commit d76c9c5018
2 changed files with 5 additions and 3 deletions

View file

@ -91,9 +91,10 @@
}
else
{
$this->serialUInt32(strlen($val));
$valLen = strlen($val);
$this->serialUInt32($valLen);
$this->Buffer .= $val;
$this->Pos += strlen($val);
$this->Pos += $valLen;
debug(sprintf ("write string '%s' %d<br>\n", $val, $this->Pos));
}
}

View file

@ -104,7 +104,8 @@
}
else
{
$this->serialUInt32($val->toInt());
$intValue = $val->toInt();
$this->serialUInt32($intValue);
debug(sprintf ("write enum '%s' %d<br>\n", $val->toString(), $this->Pos));
}
}