From bf854df1bc71d1f72a00c33a8c6a9144b841a860 Mon Sep 17 00:00:00 2001 From: Alib Date: Tue, 8 Mar 2011 08:55:20 +0100 Subject: corrected bug in svdrp.php ( Thanks Holger ) --- bin/svdrp.php | 5 +++-- 1 file 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); -- cgit v1.2.3