mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 09:58:46 +00:00
Fix PHP error "Only variables should be passed by reference"
--HG-- branch : develop
This commit is contained in:
parent
ef2415257b
commit
2df9cb5f87
2 changed files with 5 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue