Update of /cvsroot/phpcvsview/phpcvsview
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23368
Modified Files:
phpcvs.php
Log Message:
Altered CVS_PServer::sendExportFile() method to work with the newer versions of PHP. See doco on fread on the php site.
Index: phpcvs.php
===================================================================
RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvs.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** phpcvs.php 2 Oct 2004 08:42:26 -0000 1.13
--- phpcvs.php 4 Oct 2004 01:06:30 -0000 1.14
***************
*** 677,681 ****
if ($this->FINAL_RESPONSE) {
$ContentLength = $this->SOCKET->readLine();
! $this->FILECONTENTS = $this->SOCKET->read($ContentLength);
$ReadLine = $this->SOCKET->readLine();
return true;
--- 677,686 ----
if ($this->FINAL_RESPONSE) {
$ContentLength = $this->SOCKET->readLine();
! $CharsToGo = $ContentLength;
! while($CharsToGo > 0){
! $Buffer = $this->SOCKET->read($CharsToGo);
! $this->FILECONTENTS .= $Buffer;
! $CharsToGo -= strlen($Buffer);
! } // while
$ReadLine = $this->SOCKET->readLine();
return true;
|