summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/svdrp.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/svdrp.php b/bin/svdrp.php
index 466c2ee..ceed493 100644
--- a/bin/svdrp.php
+++ b/bin/svdrp.php
@@ -65,8 +65,9 @@ class SVDRP
fputs($this->handle, $cmd . "\n");
$s = "";
$nline = 0;
- while($s .= fgets($this->handle,4096))
- {
+ while(!feof($this->handle))
+ {
+ $s .= fgets($this->handle,4096))
$nline++;
$this->DebugMessage($s);