ID: 31594
User updated by: per at computer dot org
Reported By: per at computer dot org
Status: Open
Bug Type: Apache2 related
Operating System: linux 2.4.26
PHP Version: 4CVS-2005-01-18 (stable)
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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?
------------------------------------------------------------------------
[2005-01-18 10:27:42] per at computer dot org
This now appears to be related to setlocale().
To reproduce:
part0.phtml:
<?php
setlocale(LC_ALL,"da_DK.utf8");
?>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>php bug 31594</title>
</head>
<body>
part0+<?php virtual("part1"); ?>
</body>
</html>
part1.phtml: (contents irrelevant).
part1
Comment out the setlocale() in part0 to make the code work.
When it's commented out I see:
part0+part1.
When it's left in I see:
part0+
Warning: virtual(): Unable to include 'part1' - error finding URI in
------------------------------------------------------------------------
[2005-01-18 10:00:46] per at computer dot org
Description:
------------
I suspect this is related to bug#30446, but thought it best to open a
new issue rather than re-open that one.
I had php4-STABLE-200501160930 running for a day or so, when I
discovered the following in one of my existing php apps:
Warning: virtual(): Unable to include 'toc' - error finding URI in
/srv/www/vhosts/dansklisten/htdocs/albummet/helebilledet.phtml on line
57
This is from a working, stable application, works fine in php-4.3.8,
but not with the latest 4CVS.
I'll try to work out some simple code to reproduce.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31594&edit=1