1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ext/intl: Fix return value on failure for resourcebundle count handler

Closes GH-19277
This commit is contained in:
Gina Peter Banyard
2025-07-28 14:07:05 +01:00
parent 83b8d2c290
commit 6b0a80903b
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@@ -20,6 +20,7 @@ PHP NEWS
- Intl:
. Fixed GH-19261: msgfmt_parse_message leaks on message creation failure.
(David Carlier)
. Fix return value on failure for resourcebundle count handler. (Girgias)
- LDAP:
. Fixed bug GH-18529 (additional inheriting of TLS int options).

View File

@@ -257,7 +257,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 );