From: [EMAIL PROTECTED]
Operating system: Win32
PHP version: 4.3.0
PHP Bug Type: Apache2 related
Bug description: mod_rewrite variables change between apache and apache2
Hello,
I have a problem with a different behaviour of Apache / Apache2
Two configuration:
- Apache 1.3.27 / PHP 4.3 / Win32
- Apache 2.0.44 / PHP 4.3 / Win32
with more or less the same httpd.conf configuration file (here the part
which make troubles):
...
<VirtualHost io:80>
DocumentRoot "D:/CVSCheckout/project"
ServerName mycomputer.local
RewriteEngine On
RewriteRule ^/.*\.xml /system/if/xmlfile.if.php
</VirtualHost>
....
Both configuration should rewrite all .xml files to a central file, which
load the xml file and output the parsed xml code in a format (i.e. HTML,
PDF, Flash, ...).
No problem till I update the system to apache 2.0.44. Since then I get a
"400 Bad Request" Error (IE, Mozilla). I test a while and solve the
problem with this line:
RewriteRule ^/.*\.xml /system/if/xmlfile.if.php [PT]
but now all script variables like SCRIPT_NAME, etc. changes due to the
other way of rewrite.
Ok, I could do a nasty workaround, but I hate to do this due to a bug.
I know it's perhaps not a php Bug (at least I think so) but it influence
the normal php script behaviour a lot. Perhaps one of the PHP and Apache
developer could solve the problem
cu
Thomas Thiery
--
Edit bug report at http://bugs.php.net/?id=22222&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22222&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22222&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22222&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22222&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22222&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22222&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22222&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22222&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22222&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22222&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22222&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22222&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22222&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22222&r=gnused