#38577 [Opn->Fbk]: Changing internal character encoding affects function overloading
ID: 38577
Updated by: tony2001@php.net
Reported By: php at diptyque dot net
-Status: Open
+Status: Feedback
Bug Type: mbstring related
Operating System: FreeBSD 4.4
PHP Version: 4.4.4
New Comment:
Please try with minimal configuration (like ./configure
--enable-mbstring) and PHP CLI.
If you're still able to reproduce it, you're likely to be the only
person who can help you, since I really doubt anyone else can do it.
Previous Comments:
------------------------------------------------------------------------
[2006-08-24 15:04:03] php at diptyque dot net
I moved mbstring function overload initial setting (6) from
my php.ini to specific virtual hosts configuration sections
but to no avail.
It would seem that some Apache processes get it right while
others get it wrong (!) This is quite weird -- for example,
process #58902 returns int(18) while #58914 returns
int(19).
[diptyque] % GET http://localhost/bugs/mbinfo2.php
<pre>int(58902)
string(10) "ISO-8859-1"
string(10) "ISO-8859-1"
string(1) "0"
string(19) "Méthodes de codage"
int(19)
--
bool(true)
string(5) "UTF-8"
string(10) "ISO-8859-1"
string(1) "0"
string(19) "Méthodes de codage"
int(18)
--
bool(true)
string(10) "ISO-8859-1"
string(10) "ISO-8859-1"
string(1) "0"
string(19) "Méthodes de codage"
int(19)
</pre>
[diptyque] % GET http://localhost/bugs/mbinfo2.php
<pre>int(58914)
string(10) "ISO-8859-1"
string(10) "ISO-8859-1"
string(1) "0"
string(19) "Méthodes de codage"
int(19)
--
bool(true)
string(5) "UTF-8"
string(10) "ISO-8859-1"
string(1) "0"
string(19) "Méthodes de codage"
int(19)
--
bool(true)
string(10) "ISO-8859-1"
string(10) "ISO-8859-1"
string(1) "0"
string(19) "Méthodes de codage"
int(19)
</pre>
------------------------------------------------------------------------
[2006-08-24 12:41:06] tony2001@php.net
Right, int(19) is what I get on Linux and FreeBSD 5.4.
------------------------------------------------------------------------
[2006-08-24 12:33:17] php at diptyque dot net
Oops, my mistake. You should swap Expected and Actual
results. Actual result is int(18) !? Expected result is
int(19).
------------------------------------------------------------------------
[2006-08-24 12:28:30] php at diptyque dot net
Granted I could not reproduce either this bug using a WAMP
setup but did you follow the hyperlink I gave on my
FreeBSD-based server, where you can consistently replicate
this bug on each GET request?
------------------------------------------------------------------------
[2006-08-24 11:03:09] tony2001@php.net
Can't reproduce. I get int(19) in all cases.
------------------------------------------------------------------------
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/38577
--
Edit this bug report at http://bugs.php.net/?id=38577&edit=1
Thread (23 messages)
- php at diptyque dot net
- tony2001@php.net#38577 [Opn->Fbk]: Changing internal character encoding affects function overloading
- php at diptyque dot net#38577 [Fbk->Opn]: Changing internal character encoding affects function overloading
- php at diptyque dot net#38577 [Opn]: Changing internal character encoding affects function overloading
- tony2001@php.net#38577 [Opn->Fbk]: Changing internal character encoding affects function overloading
- php at diptyque dot net#38577 [Fbk->Opn]: Changing internal character encoding affects function overloading
- tony2001@php.net#38577 [Opn->Fbk]: Changing internal character encoding affects function overloading
- php at diptyque dot net#38577 [Fbk->Opn]: Changing internal character encoding affects function overloading
- php at diptyque dot net#38577 [Opn]: Changing internal character encoding affects function overloading
- tony2001@php.net#38577 [Opn]: ini settings leak between virtual hosts with Apache 1.3
- judas dot iscariote at gmail dot com#38577 [Com]: ini settings leak between virtual hosts with Apache 1.3
- php at diptyque dot net#38577 [Opn]: ini settings leak between virtual hosts with Apache 1.3
- tony2001@php.net#38577 [Opn->Fbk]: ini settings leak between virtual hosts with Apache 1.3
- php at diptyque dot net#38577 [Fbk->Opn]: ini settings leak between virtual hosts with Apache 1.3
- tony2001@php.net#38577 [Opn->Fbk]: ini settings leak between virtual hosts with Apache 1.3
- php at diptyque dot net#38577 [Fbk->Opn]: ini settings leak between virtual hosts with Apache 1.3
- php at diptyque dot net#38577 [Opn]: ini settings leak between virtual hosts with Apache 1.3
- tony2001@php.net#38577 [Opn->Fbk]: ini settings leak between virtual hosts with Apache 1.3
- php at diptyque dot net#38577 [Fbk->Opn]: ini settings leak between virtual hosts with Apache 1.3
- tony2001@php.net#38577 [Opn->Fbk]: ini settings leak between virtual hosts with Apache 1.3
- php at diptyque dot net#38577 [Fbk->Opn]: ini settings leak between virtual hosts with Apache 1.3
- tony2001@php.net#38577 [Opn->Bgs]: ini settings leak between virtual hosts with Apache 1.3
- php at diptyque dot net#38577 [Bgs]: ini settings leak between virtual hosts with Apache 1.3