|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75362 Unsupported charset results in stack overflow
Submitted: 2017-10-12 01:16 UTC Modified: 2017-10-12 08:00 UTC
From: soreepeong at gmail dot com Assigned:
Status: Duplicate Package: Reproducible crash
PHP Version: 7.1.10 OS: CentOS 6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
34 - 7 = ?
Subscribe to this entry?

 [2017-10-12 01:16 UTC] soreepeong at gmail dot com
It happens whenever PHP encounters some kind of error message. It tries to print an error message, which apparently requires charset conversion, which triggers a warning about unsupported charset, and it tries to convert encoding again, and so on.

GDB Backtrace:

Test script:

// the following invalid line prints error (expected)

// this one segfaults at the 2nd line
ini_set('default_charset', "EUC-KR");
@ini_set('mbstring.internal_encoding', "EUC-KR");

Expected result:
Print error, or actually suppress the deprecated warning since it has "@"

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-12 08:00 UTC]
-Status: Open +Status: Duplicate
 [2017-10-12 08:00 UTC]
Duplicate of bug #75236, will be fixed in PHP 7.0.25 and 7.1.1.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Oct 04 13:01:26 2023 UTC