#23011 [NoF->Opn]: fpassthru changed?
| From: | gts at uclink dot berkeley dot edu | Date: | Tue, 08 Apr 2003 17:29:27 +0000 |
| Subject: | #23011 [NoF->Opn]: fpassthru changed? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37361@lists.php.net to get a copy of this message | ||
ID: 23011
User updated by: gts at uclink dot berkeley dot edu
Reported By: gts at uclink dot berkeley dot edu
-Status: No Feedback
+Status: Open
Bug Type: Filesystem function related
Operating System: SunOS 5.7
PHP Version: 4.3.1
New Comment:
Have not had time to try the snapshot and staff member
going on vacation. Will revisit next month. Workaround
in place.
Previous Comments:
------------------------------------------------------------------------
[2003-04-07 18:43:38] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-04-02 11:01:36] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-04-01 21:57:21] gts at uclink dot berkeley dot edu
Have been using the following code for downloads with PHP
4.2.2 and Apache/1.3.26. Fpassthru() did not return on an
aborted download (user selects cancel). Now with PHP 4.3.1
and Apache 2, aborted downloads return and give the OK
message:
$fp = @fopen( "$file", 'r' );
$rc = fpassthru($fp);
Log("($file) ($rc) Download OK.");
The value returned by fpassthru($fp) is always the full size
of the file even when the download is aborted (even on very
large files where there is no chance it could actually have
beem read, 250MB). When tested with ===, fpassthru($fp)
always returns FALSE. Same results with readfile().
What's happening here?
Greg Small
gts@uclink.berkeley.edu
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23011&edit=1