1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Use RETURN_STR_COPY() in xsl

Everything in intern->parameter is already a string.
This commit is contained in:
Niels Dossche
2023-09-30 16:05:58 +02:00
parent 5c749ad4cf
commit f10e1b8f59

View File

@@ -704,7 +704,7 @@ PHP_METHOD(XSLTProcessor, getParameter)
}
intern = Z_XSL_P(id);
if ((value = zend_hash_find(intern->parameter, name)) != NULL) {
RETURN_STR(zval_get_string(value));
RETURN_STR_COPY(Z_STR_P(value));
} else {
RETURN_FALSE;
}