--- embedaddon/php/ext/xsl/xsltprocessor.c 2013/10/14 08:02:43 1.1.1.4 +++ embedaddon/php/ext/xsl/xsltprocessor.c 2014/06/15 20:04:01 1.1.1.5 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2013 The PHP Group | + | Copyright (c) 1997-2014 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xsltprocessor.c,v 1.1.1.4 2013/10/14 08:02:43 misho Exp $ */ +/* $Id: xsltprocessor.c,v 1.1.1.5 2014/06/15 20:04:01 misho Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -279,7 +279,10 @@ static void xsl_ext_function_php(xmlXPathParserContext node->type = XML_NAMESPACE_DECL; node->parent = nsparent; node->ns = curns; + } else { + node = xmlDocCopyNodeList(domintern->document->ptr, node); } + child = php_dom_create_object(node, &ret, child, domintern TSRMLS_CC); add_next_index_zval(args[i], child); }