Edit report at http://bugs.php.net/bug.php?id=54357&edit=1
ID: 54357 Updated by: [email protected] Reported by: bart at burgov dot nl Summary: setting an attribute on a cloned numberformatter crashes PHP -Status: Open +Status: Feedback Type: Bug Package: Unknown/Other Function Operating System: Windows 7 64-bit PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. I can't reproduce this on Linux, so it may be platform specific. Previous Comments: ------------------------------------------------------------------------ [2011-03-23 10:15:23] bart at burgov dot nl Description: ------------ The script below crashes on the ->setAttribute() command. Setting the attribute on $nf works fine. Test script: --------------- <?php $nf = new NumberFormatter('nl-NL', NumberFormatter::TYPE_DEFAULT); $cnf = clone $nf; $cnf->setAttribute(NumberFormatter::MIN_FRACTION_DIGITS, 1); Expected result: ---------------- I expect it not to crash Actual result: -------------- It crashes ("CLI has stopped working") ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54357&edit=1
