From: gts at uclink dot berkeley dot edu Operating system: SunOS 5.7 PHP version: 4.3.1 PHP Bug Type: Filesystem function related Bug description: fpassthru changed?
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 [EMAIL PROTECTED] -- Edit bug report at http://bugs.php.net/?id=23011&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23011&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23011&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23011&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23011&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23011&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23011&r=support Expected behavior: http://bugs.php.net/fix.php?id=23011&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23011&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23011&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23011&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23011&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23011&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23011&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23011&r=gnused