Skip to content

Commit

Permalink
Fixed client with tmpfile test
Browse files Browse the repository at this point in the history
  • Loading branch information
WarriorXK committed Apr 12, 2017
1 parent 7cc3a46 commit 17f2b8d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Tests/client.php.inc
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ try {
if ($value instanceof Read && $value->getCode() === Read::C_READ) {

$msg = $value->getMessage() ?? NULL;
var_dump($msg);
if ($msg === NULL) {
$msg = stream_get_contents($value->getStream());
var_dump($msg);

$stream = $value->getStream();
rewind($stream);
$msg = stream_get_contents($stream);

}

$caseCount = (int) $msg;
Expand Down

0 comments on commit 17f2b8d

Please sign in to comment.