File tree 4 files changed +4
-3
lines changed
4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ static void collator_ctor(INTERNAL_FUNCTION_PARAMETERS)
44
44
RETURN_NULL ();
45
45
}
46
46
47
- INTL_CHECK_LOCALE_LEN (locale_len );
47
+ INTL_CHECK_LOCALE_LEN_OBJ (locale_len , return_value );
48
48
co = (Collator_object * ) zend_object_store_get_object ( object TSRMLS_CC );
49
49
50
50
if (locale_len == 0 ) {
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ static void datefmt_ctor(INTERNAL_FUNCTION_PARAMETERS)
98
98
RETURN_NULL ();
99
99
}
100
100
101
+ INTL_CHECK_LOCALE_LEN_OBJ (locale_len , return_value );
101
102
DATE_FORMAT_METHOD_FETCH_OBJECT ;
102
103
// Convert pattern (if specified) to UTF-16.
103
104
if ( pattern_str && pattern_str_len > 0 ){
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ static void numfmt_ctor(INTERNAL_FUNCTION_PARAMETERS)
45
45
RETURN_NULL ();
46
46
}
47
47
48
- INTL_CHECK_LOCALE_LEN (locale_len );
48
+ INTL_CHECK_LOCALE_LEN_OBJ (locale_len , return_value );
49
49
object = return_value ;
50
50
FORMATTER_METHOD_FETCH_OBJECT ;
51
51
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ static void msgfmt_ctor(INTERNAL_FUNCTION_PARAMETERS)
48
48
RETURN_NULL ();
49
49
}
50
50
51
- INTL_CHECK_LOCALE_LEN (locale_len );
51
+ INTL_CHECK_LOCALE_LEN_OBJ (locale_len , return_value );
52
52
MSG_FORMAT_METHOD_FETCH_OBJECT ;
53
53
54
54
// Convert pattern (if specified) to UTF-16.
You can’t perform that action at this time.
0 commit comments