/** * Check if the underlying socket resource supports being written to by sendfile(). * * @return bool */ public function isSendfileSupported() : bool { if ($this->isEncrypted()) { return false; } return Socket::isSendfileSupported(); }