Skip to content

Commit

Permalink
[THRIFT-5757] Unit tests for php lib
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir.panivko committed Mar 5, 2024
1 parent 734b319 commit 89ede17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/php/lib/Transport/TPhpStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ public function __construct($mode)
public function open()
{
if ($this->read_) {
$this->inStream_ = @fopen(self::inStreamName(), 'r');
$this->inStream_ = fopen(self::inStreamName(), 'r');
if (!is_resource($this->inStream_)) {
throw new TException('TPhpStream: Could not open php://input');
}
}
if ($this->write_) {
$this->outStream_ = @fopen('php://output', 'w');
$this->outStream_ = fopen('php://output', 'w');
if (!is_resource($this->outStream_)) {
throw new TException('TPhpStream: Could not open php://output');
}
Expand Down

0 comments on commit 89ede17

Please sign in to comment.