|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53612 Segmentation fault when cloning intl NumberFormatter object
Submitted: 2010-12-26 05:18 UTC Modified: 2010-12-27 02:10 UTC
From: simast at gmail dot com Assigned: cataphract (profile)
Status: Closed Package: I18N and L10N related
PHP Version: 5.3.4 OS: Linux
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:
From: simast at gmail dot com
New email:
PHP Version: OS:


 [2010-12-26 05:18 UTC] simast at gmail dot com
Cloning NumberFormatter instance will result in PHP segfault (see test script). I 
haven't tested other built-in intl classes - they may have the same issue.

Test script:
$formatter = new NumberFormatter('en_US', NumberFormatter::DECIMAL);

$clonedFormatter = clone $formatter;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-26 07:13 UTC]
-Status: Open +Status: Verified
 [2010-12-26 07:13 UTC]
This should be the same across all of the intl extensions as there is no clone hooks defined so the relevant data is not copied on clone which leads to segmentation faults
 [2010-12-26 07:20 UTC]
-Package: Unknown/Other Function +Package: I18N and L10N related
 [2010-12-27 02:10 UTC]
Automatic comment from SVN on behalf of cataphract
Log: - Fixed bug #53612 (Segmentation fault when using several cloned intl
 [2010-12-27 02:10 UTC]
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cataphract
 [2010-12-27 02:10 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

 [2010-12-27 02:47 UTC]
Automatic comment from SVN on behalf of cataphract
Log: - Applied to intl version fix for PHP bug #53612.
#Note: I didn't test this because the extension doesn't compile with PHP5.3.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 15:01:29 2024 UTC