|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76556 get_debug_info handler for BreakIterator shows wrong type
Submitted: 2018-06-30 17:16 UTC Modified: 2018-06-30 17:16 UTC
From: Assigned: cmb (profile)
Status: Closed Package: intl (PECL)
PHP Version: 7.1Git-2018-06-30 (Git) OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2018-06-30 17:16 UTC]
The get_debug_info handler for BreakIterator shows the text as
type instead of the proper type, and leaks memory.

Test script:

$it = IntlBreakIterator::createCharacterInstance();

Expected result:
object(IntlRuleBasedBreakIterator)#1 (3) {
  string(3) "foo"
  string(33) "N6icu_5722RuleBasedBreakIteratorE"

Actual result:
object(IntlRuleBasedBreakIterator)#1 (3) {
  string(3) "foo"
  string(3) "foo"
[Sat Jun 30 17:06:19 2018]  Script:  '…'
/parent/php-src/Zend/zend_string.h(122) :  Freeing 0x00007f04f4259300 (64 bytes), script=…
=== Total 1 memory leaks detected ===


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-06-30 17:16 UTC]
-Assigned To: +Assigned To: cmb
 [2018-06-30 21:24 UTC]
Automatic comment on behalf of
Log: Fix #76556: get_debug_info handler for BreakIterator shows wrong type
 [2018-06-30 21:24 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Sep 30 01:01:24 2023 UTC