mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +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
|
@ -551,17 +551,17 @@ static void php_libxml_internal_error_handler(int error_type, void *ctx, const c
|
|||
|
||||
if (output == 1) {
|
||||
if (LIBXML(error_list)) {
|
||||
_php_list_set_error_structure(NULL, LIBXML(error_buffer).s->val);
|
||||
_php_list_set_error_structure(NULL, ZSTR_VAL(LIBXML(error_buffer).s));
|
||||
} else {
|
||||
switch (error_type) {
|
||||
case PHP_LIBXML_CTX_ERROR:
|
||||
php_libxml_ctx_error_level(E_WARNING, ctx, LIBXML(error_buffer).s->val);
|
||||
php_libxml_ctx_error_level(E_WARNING, ctx, ZSTR_VAL(LIBXML(error_buffer).s));
|
||||
break;
|
||||
case PHP_LIBXML_CTX_WARNING:
|
||||
php_libxml_ctx_error_level(E_NOTICE, ctx, LIBXML(error_buffer).s->val);
|
||||
php_libxml_ctx_error_level(E_NOTICE, ctx, ZSTR_VAL(LIBXML(error_buffer).s));
|
||||
break;
|
||||
default:
|
||||
php_error_docref(NULL, E_WARNING, "%s", LIBXML(error_buffer).s->val);
|
||||
php_error_docref(NULL, E_WARNING, "%s", ZSTR_VAL(LIBXML(error_buffer).s));
|
||||
}
|
||||
}
|
||||
smart_str_free(&LIBXML(error_buffer));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue