Edit report at http://bugs.php.net/bug.php?id=53612&edit=1

 ID:                 53612
 Updated by:         [email protected]
 Reported by:        simast at gmail dot com
 Summary:            Segmentation fault when cloning intl NumberFormatter
                     object
-Status:             Open
+Status:             Verified
 Type:               Bug
 Package:            Unknown/Other Function
 Operating System:   Linux
 PHP Version:        5.3.4
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to