Bug #67988 [Com]: htmlspecialchars() does not respect default_charset specified by ini_set
Edit report at https://bugs.php.net/bug.php?id=67988&edit=1
ID: 67988
Comment by: lzsiga at freemail dot c3 dot hu
Reported by: xela at xela dot org dot ua
Summary: htmlspecialchars() does not respect default_charset
specified by ini_set
Status: Closed
Type: Bug
Package: Strings related
Operating System: Linux (all?)
PHP Version: 5.6.5
Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
It this bug about htmlspecialchars or htmlentites? Regarding htmlspecialchars, the discussion in
this bugreport might be interesting: https://bugs.php.net/bug.php?id=47494
Previous Comments:
------------------------------------------------------------------------
[2015-02-03 10:01:10] yohgaki@php.net
Automatic comment on behalf of yohgaki
Revision: http://git.php.net/?p=php-src.git;a=commit;h=436ba1c4886024278337a8fe446c05a0629e4215
Log: Fixed Bug #67988 htmlspecialchars() does not respect default_charset specified by ini_set.
------------------------------------------------------------------------
[2015-01-25 01:00:31] xela at xela dot org dot ua
yohgaki, thank you a lot.
Current behaviour won't let users who still use single-byte charsets sites to upgrade from php
5.3. This fix will allow again run such sites with the only ini_set call added.
------------------------------------------------------------------------
[2015-01-25 00:52:50] yohgaki@php.net
I spotted what's wrong. I need PHP_INI_MH() obviously. I'll try to fix this before next
monthly release.
------------------------------------------------------------------------
[2015-01-25 00:39:21] yohgaki@php.net
Thank you for reminding. I'll check when I have time to remove mbstring.*, iconv.* INI settings
from PHP7. i.e. mbstring.http_input/etc removal is accepted by RFC.
------------------------------------------------------------------------
[2015-01-24 17:20:49] xela at xela dot org dot ua
Still exists in 5.6.5
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=67988
--
Edit this bug report at https://bugs.php.net/bug.php?id=67988&edit=1
Thread (10 messages)