www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Talley <david.tal...@ccnppi.com>
Subject general/8778: Content Negotiation leaves $QUERY_STRING empty on PHP web pages.
Date Fri, 16 Nov 2001 18:36:57 GMT

>Number:         8778
>Category:       general
>Synopsis:       Content Negotiation leaves $QUERY_STRING empty on PHP web pages.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Nov 16 10:40:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     david.talley@ccnppi.com
>Release:        1.3.22
>Organization:
apache
>Environment:
HPUX 10.20
Compiled with gcc
Compiled with PHP 4.0.6
./configure --with-layout=opt --with-perl=/opt/perl5/bin
            --activate-module=src/modules/php4/libphp4.a
>Description:
This worked using Apache 1.3.20.
I'm using content negotiation to serve all of my web pages without file extensions.  I'm using
the latest PHP (4.0.6) for both versions of Apache.
After upgrading to Apache 1.3.22, when a PHP page is loaded via content negotiation, the $QUERY_STRING
is blank when it should have value(s).  When the same page is loaded WITH the file extension,
$QUERY_STRING functions normally.
>How-To-Repeat:
1. Create phpinfo.php with nothing but this one line:
   <?php phpinfo(); ?>
2. Call the page using this URI: /phpinfo?foo=bar
3. In the "Apache Environment" section, notice how QUERY_STRING is blank.
4. Call the page using this URI: /phpinfo.php?foo=bar
5. In the "Apache Environment" section, notice how QUERY_STRING equals "foo=bar"
>Fix:
Other than a work-around of specifying extensions in all your links, I have no suggested way
to fix it.
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]
 
 


Mime
View raw message