#19295 [NEW]: header( "Content-Type: text/whatever" ) becomes modified to default_mimetype
| From: | j-devenish at users dot sourceforge dot net | Date: | Sun, 08 Sep 2002 23:57:49 +0000 |
| Subject: | #19295 [NEW]: header( "Content-Type: text/whatever" ) becomes modified to default_mimetype | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-18696@lists.php.net to get a copy of this message | ||
From: j-devenish@users.sourceforge.net
Operating system: Solaris 8
PHP version: 4.2.3
PHP Bug Type: Apache related
Bug description: header( "Content-Type: text/whatever" ) becomes modified to
default_mimetype
(I recently compiled PHP 4.2.3 for Apache 1.3.26 under Solaris 8 using gcc
2.95.2 using the same process that I used for PHP 4.2.2. The only
difference is that I also recompiled Apache with a newer version of
mod_perl.)
When using the header( string[, bool[, int]] ) function with a string
parameter of the form "Content-Type: text/...", where "..." is any valid
type that I have so far attempted to use, the response headers sent by
Apache contain only "Content-Type: text/html", or whatever the
default_mimetype is. (I tried changing the default_mimetype in php.ini and
confirmed that it was being used.) If "Content-Type: image/..." is used
(for example) then Apache sends that Content-Type (i.e. only "text/..."
seems to be affected). I am not certain that this is Apache
1.3.26/mod_php4-specific because I have not yet tested with other web
servers. This did not appear to occur in PHP 4.2.2, which is what we were
running last Friday.
./configure --with-apxs=/usr/apache/bin/apxs
--with-config-file-path=/etc/apache --disable-short-tags --enable-calendar
--with-mysql=/usr/local/mysql --with-gdbm=/opt/sfw --with-tiff=/usr
--with-gd=/usr/local --includedir=/usr/local/include --with-mcrypt
--with-java=/usr/java --with-xml --with-tsrm-pthreads
--with-imap=/usr/local/stow/imap-2000c --with-zlib
--with-jpeg-dir=/opt/sfw --with-png-dir=/opt/sfw --with-ttf=/usr/local
--with-t1lib-dir --with-ldap
--
Edit bug report at http://bugs.php.net/?id=19295&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19295&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19295&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19295&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19295&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19295&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19295&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19295&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19295&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19295&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19295&r=globals