[Tickets #2036] NEW: reading binary files under Windows

bugs@bugs.horde.org bugs at bugs.horde.org
Thu May 26 07:49:04 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=2036
-----------------------------------------------------------------------
 Ticket             | 2036
 Created By         | edul at isd.dp.ua
 Summary            | reading binary files under Windows
 Queue              | Horde Base
 Version            | 3.0.4
 State              | Unconfirmed
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


edul at isd.dp.ua (2005-05-26 07:49) wrote:

Problem: file download in Chora fails (only part of file is downloaded) when
Horde is installed at Windows host.

Reason: The popen() funsion is passed the "r" argument, which assumes text
mode on Windows systems by default.  The "rb" mode should be used in order
to fix this.

Affected files:
- lib/Horde/VC/cvs.php
- lib/Horde/VC/svn.php

Other suspicious files:
- lib/Horde/Crypt/pgp.php
- lib/Horde/MIME/Viewer/deb.php
- lib/Horde/MIME/Viewer/msexcel.php
- lib/Horde/MIME/Viewer/mspowerpoint.php
- lib/Horde/MIME/Viewer/rpm.php

The same problem can be with usage of fopen() function.




More information about the bugs mailing list