mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: ext/intl: Fix return value on failure for resourcebundle count handler
This commit is contained in:
1
NEWS
1
NEWS
@@ -23,6 +23,7 @@ PHP NEWS
|
||||
|
||||
- Intl:
|
||||
. Fix memleak on failure in collator_get_sort_key(). (nielsdos)
|
||||
. Fix return value on failure for resourcebundle count handler. (Girgias)
|
||||
|
||||
- LDAP:
|
||||
. Fixed bug GH-18529 (additional inheriting of TLS int options).
|
||||
|
||||
@@ -308,7 +308,7 @@ static zend_result resourcebundle_array_count(zend_object *object, zend_long *co
|
||||
if (rb->me == NULL) {
|
||||
intl_errors_set(&rb->error, U_ILLEGAL_ARGUMENT_ERROR,
|
||||
"Found unconstructed ResourceBundle", 0);
|
||||
return 0;
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
*count = ures_getSize( rb->me );
|
||||
|
||||
Reference in New Issue
Block a user