mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).
This commit is contained in:
parent
8cce5b2641
commit
4a2e40bb86
169 changed files with 3285 additions and 3175 deletions
|
@ -66,7 +66,7 @@ static void _php_intlrbbi_constructor_body(INTERNAL_FUNCTION_PARAMETERS)
|
|||
smart_str parse_error_str;
|
||||
parse_error_str = intl_parse_error_to_string(&parseError);
|
||||
spprintf(&msg, 0, "rbbi_create_instance: unable to create "
|
||||
"RuleBasedBreakIterator from rules (%s)", parse_error_str.s? parse_error_str.s->val : "");
|
||||
"RuleBasedBreakIterator from rules (%s)", parse_error_str.s? ZSTR_VAL(parse_error_str.s) : "");
|
||||
smart_str_free(&parse_error_str);
|
||||
intl_error_set_custom_msg(NULL, msg, 1);
|
||||
efree(msg);
|
||||
|
@ -211,8 +211,8 @@ U_CFUNC PHP_FUNCTION(rbbi_get_binary_rules)
|
|||
}
|
||||
|
||||
zend_string *ret_rules = zend_string_alloc(rules_len, 0);
|
||||
memcpy(ret_rules->val, rules, rules_len);
|
||||
ret_rules->val[rules_len] = '\0';
|
||||
memcpy(ZSTR_VAL(ret_rules), rules, rules_len);
|
||||
ZSTR_VAL(ret_rules)[rules_len] = '\0';
|
||||
|
||||
RETURN_STR(ret_rules);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue