Bug #53612 [Ver->Csd]: Segmentation fault when cloning intl NumberFormatter object
| From: | cataphract@php.net | Date: | Mon, 27 Dec 2010 01:10:45 +0000 |
| Subject: | Bug #53612 [Ver->Csd]: Segmentation fault when cloning intl NumberFormatter object | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157333@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53612&edit=1
ID: 53612
Updated by: cataphract@php.net
Reported by: simast at gmail dot com
Summary: Segmentation fault when cloning intl NumberFormatter
object
-Status: Verified
+Status: Closed
Type: Bug
Package: I18N and L10N related
Operating System: Linux
PHP Version: 5.3.4
-Assigned To:
+Assigned To: cataphract
Block user comment: N
Private report: N
New Comment:
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
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2010-12-27 02:10:10] cataphract@php.net
Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&revision=306722
Log: - Fixed bug #53612 (Segmentation fault when using several cloned
intl
objects).
------------------------------------------------------------------------
[2010-12-26 07:13:59] kalle@php.net
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 05:18:45] simast at gmail dot com
Description:
------------
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;
$clonedFormatter->format(12.54);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53612&edit=1