Changeset View
Changeset View
Standalone View
Standalone View
src/hgdaemon/ArcanistHgServerChannel.php
Context not available. | |||||
$args = implode("\0", $args); | $args = implode("\0", $args); | ||||
$len = strlen($args); | $len = @strlen($args); | ||||
$len = pack('N', $len); | $len = pack('N', $len); | ||||
return "{$command}\n{$len}{$args}"; | return "{$command}\n{$len}{$args}"; | ||||
Context not available. | |||||
// easy to implement. | // easy to implement. | ||||
$messages = array(); | $messages = array(); | ||||
while ($this->byteLengthOfNextChunk <= strlen($this->buf)) { | while ($this->byteLengthOfNextChunk <= @strlen($this->buf)) { | ||||
$chunk = substr($this->buf, 0, $this->byteLengthOfNextChunk); | $chunk = @substr($this->buf, 0, $this->byteLengthOfNextChunk); | ||||
$this->buf = substr($this->buf, $this->byteLengthOfNextChunk); | $this->buf = @substr($this->buf, $this->byteLengthOfNextChunk); | ||||
switch ($this->mode) { | switch ($this->mode) { | ||||
case self::MODE_CHANNEL: | case self::MODE_CHANNEL: | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0