Commit 35e96f621b7 for php.net

commit 35e96f621b7b4d257efa612b497972f0a057a430
Author: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
Date:   Sat Apr 19 16:00:06 2025 +0200

    DOM/XPath: Use ZSTR_LEN abstraction instead of direct member access

diff --git a/ext/dom/xpath.c b/ext/dom/xpath.c
index c6f8053d1a3..de7ce22ed12 100644
--- a/ext/dom/xpath.c
+++ b/ext/dom/xpath.c
@@ -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));
 	}
 }