note 97257 rejected from function.ssh2-exec by degeberg

From: Date: Sun, 11 Apr 2010 10:34:20 +0000
Subject: note 97257 rejected from function.ssh2-exec by degeberg
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168123@lists.php.net to get a copy of this message
Note Submitter: m dot paniez at effe dot fr ---- Hi, I'll have some trouble with jaimie at seoegghead dot com's code and, finally, feof php function does some infinity loop. So, in your code, I replace : while (!$this->feof()) $buf .= $this->getStreamOutput(); by : while ($line=getStreamOutput()) { if($line) if(strlen($line)>0) $buf .= $line; } Have a nice day

« previous php.notes (#168123) next »