1
0
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:
Niels Dossche
2025-04-19 16:00:06 +02:00
parent 91a310e603
commit 35e96f621b

View File

@@ -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));
}
}