Ticket #7885: mythweb_event.diff
File mythweb_event.diff, 839 bytes (added by , 16 years ago) |
---|
-
classes/MythBackend.php
127 127 128 128 public function sendCommand($command = null) { 129 129 $this->connect(); 130 // Flush the input buffer to clear out any unwanted events that might have shown up 131 $this->receiveData(1); 132 // The format should be <length + whitespace to 8 total bytes><data> 130 133 if (is_array($command)) 131 134 $command = implode(MythBackend::$backend_separator, $command); 132 // The format should be <length + whitespace to 8 total bytes><data>133 135 $command = strlen($command) . str_repeat(' ', 8 - strlen(strlen($command))) . $command; 134 136 fputs($this->fp, $command); 135 137 return $this->receiveData();