Edit report at http://bugs.php.net/bug.php?id=54357&edit=1
ID: 54357
User updated by: bart at burgov dot nl
Reported by: bart at burgov dot nl
Summary: setting an attribute on a cloned numberformatter
crashes PHP
-Status: Feedback
+Status: Closed
Type: Bug
Package: Unknown/Other Function
Operating System: Windows 7 64-bit
-PHP Version: 5.3.6
+PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
Apparently I didn't have 5.3.6 but 5.3.5, the bug seems to be fixed in
the latest PHP version.
Previous Comments:
------------------------------------------------------------------------
[2011-03-24 07:34:31] [email protected]
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.
------------------------------------------------------------------------
[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