- Fixed bug #53512 (NumberFormatter::setSymbol crash on bogus $attr values)

This commit is contained in:
Felipe Pena 2010-12-10 00:47:51 +00:00
parent 573475a848
commit 7d2b089860
2 changed files with 9 additions and 0 deletions

4
NEWS
View File

@ -1,6 +1,10 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 20??, PHP 5.3.5
- Intl extension:
. Fixed bug #53512 (NumberFormatter::setSymbol crash on bogus $attr values).
(Felipe)
- PDO Oracle driver:
. Fixed bug #39199 (Cannot load Lob data with more than 4000 bytes on
ORACLE 10). (spatar at mail dot nnov dot ru)

View File

@ -311,6 +311,11 @@ PHP_FUNCTION( numfmt_set_symbol )
RETURN_FALSE;
}
if (symbol >= UNUM_FORMAT_SYMBOL_COUNT || symbol < 0) {
intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR, "numfmt_set_symbol: invalid symbol value", 0 TSRMLS_CC );
RETURN_FALSE;
}
/* Fetch the object. */
FORMATTER_METHOD_FETCH_OBJECT;