Skip to content

Commit

Permalink
Added @ operator for fclose.
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Jul 30, 2016
1 parent 8fc1f83 commit 9a5bc20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Hprose/Socket/FullDuplexTransporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* *
* hprose socket FullDuplexTransporter class for php 5.3+ *
* *
* LastModified: Jul 12, 2016 *
* LastModified: Jul 30, 2016 *
* Author: Ma Bingyao <[email protected]> *
* *
\**********************************************************/
Expand Down Expand Up @@ -56,7 +56,7 @@ protected function asyncReadError($o, $stream, $index) {
}
unset($o->queue[$stream_id]);
unset($o->responses[$stream_id]);
fclose($stream);
@fclose($stream);
$this->removeStream($stream, $o->readpool);
$this->removeStream($stream, $o->writepool);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Hprose/Socket/HalfDuplexTransporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* *
* hprose socket HalfDuplexTransporter class for php 5.3+ *
* *
* LastModified: Jul 12, 2016 *
* LastModified: Jul 30, 2016 *
* Author: Ma Bingyao <[email protected]> *
* *
\**********************************************************/
Expand All @@ -40,7 +40,7 @@ protected function asyncReadError($o, $stream, $index) {
$o->results[$index]->reject($this->getLastError('response read error'));
$this->free($o, $index);
unset($o->responses[(integer)$stream]);
fclose($stream);
@fclose($stream);
$this->removeStream($stream, $o->readpool);
}
protected function getBodyLength($stream) {
Expand Down

0 comments on commit 9a5bc20

Please sign in to comment.