ID: 31594 Updated by: [EMAIL PROTECTED] Reported By: per at computer dot org -Status: Open +Status: Bogus Bug Type: Apache2 related Operating System: linux 2.4.26 PHP Version: 5.0.4, 4.3.11 New Comment:
I can reproduce this only with the setlocale call enabled, and see a "no acceptable variant" error in error_log. Locale settings are process-global and changing them are quite likely to break other Apache modules doing e.g. case-sensitive string comparisons. So, I think the resolution for this bug should be simply "don't do that". Previous Comments: ------------------------------------------------------------------------ [2005-04-16 08:59:31] per at computer dot org Just checked with 4.3.11 - problem is still there. ------------------------------------------------------------------------ [2005-01-23 10:23:46] per at computer dot org It's content negotiation. You need mod_negotiation and "Options +Multiviews" for the directory. I've just tried turning off Multiviews and virtual() then produces "Warning: virtual(): Unable to include 'part1' - request execution failed in " as expected. ------------------------------------------------------------------------ [2005-01-22 15:14:20] [EMAIL PROTECTED] How exactly do I have to configure Apache2 to be able to use virtual() without the .php (or like you do, without .phtml) suffix?? Apart from that, when I change the parameter to virtual to be correct, your example works just fine with latest CVS checkout regardless of what locale is in use.. ------------------------------------------------------------------------ [2005-01-18 17:32:23] per at computer dot org I see no 406 codes (no acceptable variant) in the regular log and no such entries in the error_log either. I'm changing the locale such that e.g. strftime() will display dates in danish for instance. As I said, this application works fine with 4.3.8, so it would appear that something got regressed somewhere. ------------------------------------------------------------------------ [2005-01-18 16:14:45] [EMAIL PROTECTED] Do you get a "no acceptable variant" message logged to the httpd error_log? Changing the locale can make functions like strcasecmp behave in unexpected ways and hence random stuff can fail. Why do you need to change the locale? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/31594 -- Edit this bug report at http://bugs.php.net/?id=31594&edit=1