
ck miller - 2009-10-03 16:04:24 -
In reply to message 5 from Manuel Lemos
Yep, that's what I thought first.
But I soon noticed that it had to be something else.
Then I conducted a quick test with:
$fp=fsockopen('localhost',25,...); if ($fp) echo fgets(...);
Working.
As soon as I put the fgets in a while(!feof($fp)) loop I faced the problem again.
Conclusion: feof is sometimes true and sometimes false.
I got rid of the problem by commenting the if(feof($this->connection)) in your GetLine() function as a temporary solution.