Skip to content

Commit f10e1b8

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

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
@@ -704,7 +704,7 @@ PHP_METHOD(XSLTProcessor, getParameter)
704704
}
705705
intern = Z_XSL_P(id);
706706
if ((value = zend_hash_find(intern->parameter, name)) != NULL) {
707-
RETURN_STR(zval_get_string(value));
707+
RETURN_STR_COPY(Z_STR_P(value));
708708
} else {
709709
RETURN_FALSE;
710710
}

0 commit comments

Comments
 (0)