Avoid unnecesary zval separation

This commit is contained in:
Moriyoshi Koizumi 2003-06-05 18:54:19 +00:00
parent 15aab08e9d
commit 3ebf297261

View file

@ -95,8 +95,10 @@ static char **php_xsl_xslt_make_params(HashTable *parht, int xpath_params TSRMLS
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid argument or parameter array");
return NULL;
} else {
SEPARATE_ZVAL(value);
convert_to_string_ex(value);
if (Z_TYPE_PP(value) != IS_STRING) {
SEPARATE_ZVAL(value);
convert_to_string(*value);
}
if (!xpath_params) {
xpath_expr = php_xsl_xslt_string_to_xpathexpr(Z_STRVAL_PP(value) TSRMLS_CC);