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: 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] [email protected] 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] [email protected] 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
