|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53512 NumberFormatter::setSymbol crash on bogus $attr values
Submitted: 2010-12-09 22:12 UTC Modified: 2010-12-10 01:51 UTC
From: thoger at redhat dot com Assigned: felipe
Status: Closed Package: Reproducible crash
PHP Version: 5.3.3 OS: Linux
Private report: No CVE-ID:
 [2010-12-09 22:12 UTC] thoger at redhat dot com
SVN commit r305571:

fixed a crash in NumberFormatter::getSymbol when certain invalid values are passed to it as $attr argument.  Similar issue affects setSymbol too and does not seem to be addressed in the above above commit.  Underlying ICU issue is similar.

Test script:
numfmt_set_symbol(numfmt_create("en", NumberFormatter::PATTERN_DECIMAL), 2147483648, "");


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-10 01:47 UTC]
Automatic comment from SVN on behalf of felipe
Log: - Fixed bug #53512 (NumberFormatter::setSymbol crash on bogus $attr values)
 [2010-12-10 01:51 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: felipe
 [2010-12-10 01:51 UTC]
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
Thank you for the report, and for helping us make PHP better.

 [2010-12-10 01:59 UTC]
Automatic comment from SVN on behalf of felipe
Log: - Added test for bug #53512
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Fri Nov 27 04:01:30 2015 UTC