php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11706 POSTs to CGI scripts on Apache 1.3.20 server fail
Submitted: 2001-06-26 14:19 UTC Modified: 2001-07-23 11:43 UTC
From: abrock at georgefox dot edu Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.6 OS: Solaris 7 Sparc 64-Bit
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: abrock at georgefox dot edu
New email:
PHP Version: OS:

 

 [2001-06-26 14:19 UTC] abrock at georgefox dot edu
We recently upgraded our Apache server from 1.3.12 to
1.3.20.  In the process, we also upgraded to mod_perl 1.25
and decided to upgrade PHP from version 3 to version 4.0.6.
After compiling Apache with DSO support, I installed the new
server with the modules. We immediately noticed that every
CGI script (Perl, C compiled, etc) that received a POST
failed after the upgrade.

To test, I created a simple HTML form which posted to the
following Perl script:

***** START test.pl *****
#!/usr/bin/perl -w

use strict;

print "Content-Type: text/html; charset=ISO-8859-1\n\n";

print "<HTML><BODY>\n";

while (my $elem = <STDIN>)
{
  print $elem . "\n";
}

print "</BODY></HTML>\n";
***** END test.pl *****

When tested on an older server, we see:

<HTML><BODY>
recipient=bweldon%40georgefox.edu&subject=brad-test&First_Name=asdf&submit=submit
</HTML></BODY>

When tested on the new server, we see:

<HTML><BODY>
</HTML></BODY>

However, if I comment out from our apache httpd.conf:

LoadModule php4_module        libexec/libphp4.so

the server starts working correctly (with the traditional
behavior for our perl and C compiled CGI scripts). This is a
show-stopper! Please advise on how to fix! Thank you in
advance!

PHP 4.0.6 compiled with:

./configure \
--prefix=/opt/php4 \
--with-apxs=/opt/apache-ssl/bin/apxs \
--with-ldap=/opt/ldap \
--with-mysql=/opt/mysql \
--enable-ftp \
--with-openssl=/opt/openssl \
--with-db2=/opt/BerkeleyDB \
--with-snmp=/opt/ucd-snmp \
--enable-ucd-snmp-hack \
--with-mm=/opt/mm \
--with-sybase=/opt/sybase/openclient \
--without-gdbm \
--enable-sockets

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-27 09:25 UTC] sniper@php.net
I can not reproduce this. POST works just fine for me. 
I have also mod_perl (compiled as DSO) and PHP 4.0.6 compiled with a little more options than you.

Is there anything in your log files?
You could also try changing the load order of the DSO's.

--Jani


 [2001-07-23 11:43 UTC] kalowsky@php.net
no user feedback.  if this bug is still valid please reopen it.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Mar 13 19:01:31 2025 UTC