Skip to content

Commit 5295fc0

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: ext/intl: Fix return value on failure for resourcebundle count handler
2 parents 19c84e2 + 6b0a809 commit 5295fc0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ PHP NEWS
2323

2424
- Intl:
2525
. Fix memleak on failure in collator_get_sort_key(). (nielsdos)
26+
. Fix return value on failure for resourcebundle count handler. (Girgias)
2627

2728
- LDAP:
2829
. Fixed bug GH-18529 (additional inheriting of TLS int options).

ext/intl/resourcebundle/resourcebundle_class.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ static zend_result resourcebundle_array_count(zend_object *object, zend_long *co
308308
if (rb->me == NULL) {
309309
intl_errors_set(&rb->error, U_ILLEGAL_ARGUMENT_ERROR,
310310
"Found unconstructed ResourceBundle", 0);
311-
return 0;
311+
return FAILURE;
312312
}
313313

314314
*count = ures_getSize( rb->me );

0 commit comments

Comments
 (0)