--- embedaddon/php/ext/dom/domimplementation.c 2012/02/21 23:47:54 1.1.1.1 +++ embedaddon/php/ext/dom/domimplementation.c 2013/07/22 01:31:40 1.1.1.3 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2012 The PHP Group | + | Copyright (c) 1997-2013 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: domimplementation.c,v 1.1.1.1 2012/02/21 23:47:54 misho Exp $ */ +/* $Id: domimplementation.c,v 1.1.1.3 2013/07/22 01:31:40 misho Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -91,7 +91,6 @@ Since: DOM Level 2 */ PHP_METHOD(domimplementation, createDocumentType) { - zval *rv = NULL; xmlDtd *doctype; int ret, name_len = 0, publicid_len = 0, systemid_len = 0; char *name = NULL, *publicid = NULL, *systemid = NULL; @@ -141,7 +140,7 @@ PHP_METHOD(domimplementation, createDocumentType) RETURN_FALSE; } - DOM_RET_OBJ(rv, (xmlNodePtr) doctype, &ret, NULL); + DOM_RET_OBJ((xmlNodePtr) doctype, &ret, NULL); } /* }}} end dom_domimplementation_create_document_type */ @@ -151,7 +150,7 @@ Since: DOM Level 2 */ PHP_METHOD(domimplementation, createDocument) { - zval *node = NULL, *rv = NULL; + zval *node = NULL; xmlDoc *docp; xmlNode *nodep; xmlDtdPtr doctype = NULL; @@ -238,7 +237,7 @@ PHP_METHOD(domimplementation, createDocument) xmlFree(localname); } - DOM_RET_OBJ(rv, (xmlNodePtr) docp, &ret, NULL); + DOM_RET_OBJ((xmlNodePtr) docp, &ret, NULL); if (doctobj != NULL) { doctobj->document = ((dom_object *)((php_libxml_node_ptr *)docp->_private)->_private)->document;