Changeset 8270 for temp/trunk/data
- Timestamp:
- 2006/11/13 14:52:55 (20 years ago)
- Location:
- temp/trunk/data/module
- Files:
-
- 2 edited
-
Net/Socket.php (modified) (1 diff)
-
Request.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/module/Net/Socket.php
r8269 r8270 449 449 $timeout = time() + $this->timeout; 450 450 451 451 452 $fp = $this->fp; 452 453 while (($c =@fgets($fp, $this->lineLength))!==false && (!$this->timeout || time() < $timeout)) { 453 454 $line .= $c; 454 455 if (substr($line, -1) == "\n") { 456 455 457 return rtrim($line, "\r\n"); 456 458 } 457 sfprintr("Socket"); 458 sfprintr($line); 459 } 460 459 } 461 460 462 461 /* -
temp/trunk/data/module/Request.php
r8269 r8270 683 683 // Read the response 684 684 $this->_response = &new HTTP_Response($this->_sock, $this->_listeners); 685 sfprintr($this->_response); 685 686 $err = $this->_response->process( 686 687 $this->_saveBody && $saveBody, … … 1118 1119 do { 1119 1120 $line = $this->_sock->readLine(); 1120 sfprintr($line);1121 1121 if (sscanf($line, 'HTTP/%s %s', $http_version, $returncode) != 2) { 1122 1122 return PEAR::raiseError('Malformed response.');
Note: See TracChangeset
for help on using the changeset viewer.
