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

This commit is contained in:
kaetemi 2014-11-07 23:51:42 +01:00
parent 80105b365c
commit 04c57350d9

View file

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