ID: 46467
User updated by: hostmaster at uuism dot net
Reported By: hostmaster at uuism dot net
Status: Bogus
Bug Type: mbstring related
Operating System: Fedora Core 4
PHP Version: 5.2.6
New Comment:
moriyoshi,
Okay. I understand.
Isn't it also an over-assumption to assume that the third argument
charset equals default_charset in this statement?
htmlentities("\x82\x86\x99\x9f", ENT_QUOTES, '');
Jim
Previous Comments:
------------------------------------------------------------------------
[2008-11-09 16:41:45] [EMAIL PROTECTED]
The above comment was intended as a reply to the following:
> on the other hand, this statement should use the default_charset
------------------------------------------------------------------------
[2008-11-05 05:52:26] hostmaster at uuism dot net
moriyoshi,
sorry, i don't understand what you are saying.
i just don't see why charset='' should be assumed to be the same as
charset=default_charset when executing htmlentities
thanks
jim
------------------------------------------------------------------------
[2008-11-04 12:37:56] [EMAIL PROTECTED]
Regarding the input as encoded in default_charset can be
over-assumption because the output being sent to the browser may differ
from that of the PHP script.
------------------------------------------------------------------------
[2008-11-04 01:01:52] hostmaster at uuism dot net
jani,
if they fail for everyone, should they have a --XFAIL-- section
frankly, based on pure logic, i would not expect this statement to use
the default_charset
htmlentities("\x82\x86\x99\x9f", ENT_QUOTES, '');
since '' has no meaning as a value for charset, htmlentites should use
the same default as when default_charset='' which is ISO-8859-1
on the other hand, this statement should use the default_charset
htmlentities("\x82\x86\x99\x9f", ENT_QUOTES);
since the third parameter is optional.
jim
------------------------------------------------------------------------
[2008-11-03 08:34:11] [EMAIL PROTECTED]
Yes, they fail for everyone and especially with braindead libc's.
------------------------------------------------------------------------
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/46467
--
Edit this bug report at http://bugs.php.net/?id=46467&edit=1