php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #63945
Patch intl-resourcebundle-get-locale-inheritance revision 2013-01-08 19:31 UTC by nrawlings at imiassociates dot com

Patch intl-resourcebundle-get-locale-inheritance for I18N and L10N related Bug #63945

Patch version 2013-01-08 19:31 UTC

Return to Bug #63945 | Download this patch
Patch Revisions:

Developer: nrawlings@imiassociates.com

diff --git a/resourcebundle/resourcebundle_class.c b/resourcebundle/resourcebundle_class_mod.c
index 24aa4c2..1f5e6f1 100644
--- a/resourcebundle/resourcebundle_class.c
+++ b/resourcebundle/resourcebundle_class_mod.c
@@ -178,7 +178,7 @@ static void resourcebundle_array_fetch(zval *object, zval *offset, zval *return_
 	} else if(Z_TYPE_P(offset) == IS_STRING) {
 		mekey = Z_STRVAL_P(offset);
 		mekeylen = Z_STRLEN_P(offset);
-		rb->child = ures_getByKey(rb->me, mekey, rb->child, &INTL_DATA_ERROR_CODE(rb) );
+		rb->child = ures_getByKeyWithFallback(rb->me, mekey, rb->child, &INTL_DATA_ERROR_CODE(rb) );
 	} else {
 		intl_errors_set(INTL_DATA_ERROR_P(rb), U_ILLEGAL_ARGUMENT_ERROR,	
 			"resourcebundle_get: index should be integer or string", 0 TSRMLS_CC);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 16:01:29 2024 UTC