mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
DOM/XPath: Use ZSTR_LEN abstraction instead of direct member access
This commit is contained in:
@@ -527,7 +527,7 @@ PHP_METHOD(DOMXPath, quote) {
|
||||
smart_str_appendc(&output, ',');
|
||||
}
|
||||
ZEND_ASSERT(ptr == end);
|
||||
ZSTR_VAL(output.s)[output.s->len - 1] = ')';
|
||||
ZSTR_VAL(output.s)[ZSTR_LEN(output.s) - 1] = ')';
|
||||
RETURN_STR(smart_str_extract(&output));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user