You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/03/21 09:04:02 UTC
DO NOT REPLY [Bug 7310] New: -
Problems with PHP as module under Windows XP
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7310>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7310
Problems with PHP as module under Windows XP
Summary: Problems with PHP as module under Windows XP
Product: Apache httpd-1.3
Version: 1.3.23
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Major
Priority: Other
Component: Modules
AssignedTo: bugs@httpd.apache.org
ReportedBy: khoukaz@web.de
I use a script like the following for downloading files (images, ascii,
...) :
<?
$link = $save_as_name = "test.tif"; // or *.bmp, *.txt, ...
$size = filesize($link);
header("Content-Type: application/octet-stream");
header("Content-disposition: inline; filename=\"".$save_as_name."\"");
header("Content-Length: $size");
header("Content-Transfer-Encoding: binary\n");
readfile($link);
?>
Under Win NT/2000 it works fine, but under XP i get a distorted image
after downloading and opening the file. Also text files differ from the
original one.
The same probleme occurs with text files. Below you will find a comparision
between an original text file (httpd.conf) and what the download makes of it:
------- a cutting of apache httpd.conf ----------------
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule php4_module modules/php4apache.dll
#
# Reconstruction of the complete module list from all available
modules
# (static and shared ones) to achieve correct module execution order.
#
# The modules listed below, without a corresponding LoadModule
directive,
# are static bound into the standard Apache binary distribution for
Windows.
#
# Note: The order in which modules are loaded is important. Don't
change
# the order below without expert advice.
#
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
ClearModuleList
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
#AddModule mod_mime_magic.c
...
-------------------------------------------------------
--------------- the downloaded part -------------------
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule php4_module modules/php4apache.dll
#
# Reconstruction of the complete module list from all available
modules
# (static and shared ones) to achieve correct module execution order.
#
# The modules listed below, without a corresponding LoadModule
directiveRCRD(. .�`�.....p�..h......�`�....Y�........�..�........
.`�....�`�....�`�....�.........h..............(.��..........
.�......��.....FILE0..�`�......8..�................�_........
....`...........H......,�ټ��,�ټ��,�ټ��,�ټ��
...................\..................0...x..........Z.....[.....,
�ټ��,�ټ��,�ټ��,�ټ��................
.......R.E.S.U.L.T.~.3...H.T.M.t.m...0...x..........^.....[.....,
�ټ��,�ټ��,�ټ��,�ټ��................
.....Y�r.e.s.u.l.t.s.[.2.]...h.t.m...�...................�����yGH
`�....`�............(..........h.............(...(..............
.......Z���..S`�....................@..........h.............(...(
....�.....�......��.....�...................a`�....S`�....S
`�....p..........h.............(.H.p.....�.....�......��.....�
...H.................��������@...................................�3<�u
`�....a`�....a`�....0..........h.............(..(..�..........
.......R�...Y�~.....�`�....u`�....u`�....X..........h...........
..(..@....�.....�......��.....................................
...............�`�....�`�....�`�....8..........h........... . .(..0
....�@....�......��.....!~.���....�3<��`�....�`�............(
..........h.............(...(..................... ���.y�`�.....
...............0..........h.............(..(..�................T
�.....@.....�`�....�`�....�`�....H..........h........... . .(..8
....�E....�....Y���......���w�......=��Aف.....�`�....�
`�....�`�....X..........h.............(..@....�.....�......�
�......
......_......_.......@......_......_......�`�....�`�....�`�....�.
.........h.............(.8.`.8.�...�...........˽.....ʦv���~k
{���~k{���~k{���. ......_......
.......ʦv���~k{���~k{���~k{���.@......_......
----------------------------------------------------------
The size of the files is always correct.
I use Apache 1.3.23 and PHP 4.1.1 as module. If i call the script as CGI under
apache it works fine. With Win NT/2000 there are no problems (ISAPI or CGI).
I have already repoted a bug to PHP:
http://bugs.php.net/?id=15613&edit=2
The guys from PHP think it is a bug in apache.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org