Changeset 8284 for temp/trunk/data/module
- Timestamp:
- 2006/11/13 15:40:52 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/module/Net/Socket.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/module/Net/Socket.php
r8275 r8284 449 449 $timeout = time() + $this->timeout; 450 450 451 452 $fp = $this->fp;453 while (($c =@fgets($fp, $this->lineLength))!==false && (!$this->timeout || time() < $timeout)) {454 $line .= $c;455 if (substr($line, -1) == "\n") {456 457 return rtrim($line, "\r\n");458 }459 }460 461 /*462 451 while (!feof($this->fp) && (!$this->timeout || time() < $timeout)) { 463 452 $line .= @fgets($this->fp, $this->lineLength); … … 466 455 } 467 456 } 468 */ 457 469 458 return $line; 470 459 }
Note: See TracChangeset
for help on using the changeset viewer.
