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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user