Bug #53612 [Opn->Ver]: Segmentation fault when cloning intl NumberFormatter object

From: Date: Sun, 26 Dec 2010 06:14:01 +0000
Subject: Bug #53612 [Opn->Ver]: Segmentation fault when cloning intl NumberFormatter object
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157326@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: kalle@php.net 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

« previous php.bugs (#157326) next »