Skip to content

Commit 35e96f6

Browse files
committed
DOM/XPath: Use ZSTR_LEN abstraction instead of direct member access
1 parent 91a310e commit 35e96f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/dom/xpath.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ PHP_METHOD(DOMXPath, quote) {
527527
smart_str_appendc(&output, ',');
528528
}
529529
ZEND_ASSERT(ptr == end);
530-
ZSTR_VAL(output.s)[output.s->len - 1] = ')';
530+
ZSTR_VAL(output.s)[ZSTR_LEN(output.s) - 1] = ')';
531531
RETURN_STR(smart_str_extract(&output));
532532
}
533533
}

0 commit comments

Comments
 (0)