Skip to content

Commit 506300a

Browse files
committed
Use RETURN_STR_COPY() in xsl
Everything in intern->parameter is already a string.
1 parent c3ce90c commit 506300a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/xsl/xsltprocessor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ PHP_METHOD(XSLTProcessor, getParameter)
686686
}
687687
intern = Z_XSL_P(id);
688688
if ((value = zend_hash_find(intern->parameter, name)) != NULL) {
689-
RETURN_STR(zval_get_string(value));
689+
RETURN_STR_COPY(Z_STR_P(value));
690690
} else {
691691
RETURN_FALSE;
692692
}

0 commit comments

Comments
 (0)