Changeset View
Changeset View
Standalone View
Standalone View
src/parser/http/PhutilHTTPResponse.php
Context not available. | |||||
public function appendBody($bytes) { | public function appendBody($bytes) { | ||||
if ($this->writeHandle !== null) { | if ($this->writeHandle !== null) { | ||||
$result = @fwrite($this->writeHandle, $bytes); | $result = @fwrite($this->writeHandle, $bytes); | ||||
if ($result !== strlen($bytes)) { | if ($result !== @strlen($bytes)) { | ||||
throw new Exception( | throw new Exception( | ||||
pht('Failed to write response to disk. (Maybe the disk is full?)')); | pht('Failed to write response to disk. (Maybe the disk is full?)')); | ||||
} | } | ||||
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