mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
- Fixed bug #53512 (NumberFormatter::setSymbol crash on bogus $attr values)
This commit is contained in:
parent
573475a848
commit
7d2b089860
4
NEWS
4
NEWS
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user