ID:               22154
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         Apache related
 Operating System: Linux 2.4.18-10
-PHP Version:      4.2.3
+PHP Version:      4.3.0
 New Comment:

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




Previous Comments:
------------------------------------------------------------------------

[2003-02-10 18:03:00] [EMAIL PROTECTED]

I was able to reproduce this behavior with PHP 4.3.0 as an apache
module. (just finished building and installing it).

------------------------------------------------------------------------

[2003-02-10 17:58:28] [EMAIL PROTECTED]

Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

PHP 4.3.0 was released long time ago..


------------------------------------------------------------------------

[2003-02-10 17:29:14] [EMAIL PROTECTED]

Does using readfile("../../../software/$file") produce the same
problems?

Can you reproduce the problems using a simpler script?  i.e.:

<?php
  echo "<HTML><BODY><PRE>\n";
  $fp = fopen("somelargetextfile.txt","r");
  fpassthru($fp);
  echo "</PRE></BODY></HTML>\n";
?>

------------------------------------------------------------------------

[2003-02-10 17:08:32] [EMAIL PROTECTED]

Configure line for Apache module:
'./configure' '--with-apxs=/opt/IBMHTTPServer/bin/apxs'
'--enable-force-cgi-redirect' '--enable-discard-path' '--enable-debug'
'--with-config-file-path=/etc' '--with-pear' '--with-openssl'
'--enable-magic-quotes' '--disable-short-tags' '--with-zlib'
'--enable-bcmath' '--with-bz2' '--enable-calendar' '--with-curl'
'--with-gdbm' '--with-ndmb' '--with-dom' '--enable-exif' '--enable-ftp'
'--with-gettext' '--with-gmp' '--with-imap' '--with-imap-ssl'
'--with-kerberos' '--with-mcal=../libmcal' '--with-mhash'
'--with-ldap=/home/joem/php/ldap' '--enable-shmop' '--with-snmp'
'--enable-ucd-snmp-hack' '--enable-sockets' '--with-regex=system'
'--enable-sysvsem' '--enable-sysvshm' '--enable-tokenizer'
'--enable-wddx' '--enable-yp' '--enable-inline-optimization'
'--enable-memory-limit' '--enable-sigchild'
'--with-mysql=/home/joem/php/mysql'

Script:
<snip>
 $file = getCurrentFilename($product, $platform);
  if ($file != FALSE ) {
    $fp = fopen("../../../software/$file", 'rb');
    rewind($fp);
    header("Cache-control: private"); // another fix for IE
    header("Content-Type: application/x-stuffit");
    header("Content-Length: ".filesize("../../../software/$file"));
    header("Content-Disposition: attachment\; filename=\"$file\"");
    header("Connection: close");
    $fr = fpassthru($fp);
</snip>

fpassthru() seems to be wonky.  I'm trying to send .sit archives
through this script.  The files are sent ok if they are ~300KB.  Other
files that I need to send that are ~3.3MB fail.  IE reports a DNS error
(bogus) and Galeon (Mozilla) reports File Contains no data.   PHP is
running as an apache module in IBM HTTP Server 1.3.19.3 (Apache
1.3.20).  There is no core, and no error reported in httpd's error log.
 The transfer log reports a 200 code for success.

Backtrace:
I don't get a SIGSEGV...

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22154&edit=1

Reply via email to