|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-09-08 18:57 UTC] j-devenish at users dot sourceforge dot net
(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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 12:00:01 2025 UTC |
Commonplace effects of this problem: formatted monospace text appears as run-on proportionally-spaced text ('text/html' sent instead of 'text/plain'); Mozilla doesn't recognise stylesheets (requires 'text/css').