Diff for /embedaddon/php/ext/dom/domimplementation.c between versions 1.1 and 1.1.1.4

version 1.1, 2012/02/21 23:47:54 version 1.1.1.4, 2014/06/15 20:03:42
Line 2 Line 2
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
    | PHP Version 5                                                        |     | PHP Version 5                                                        |
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
   | Copyright (c) 1997-2012 The PHP Group                                |   | Copyright (c) 1997-2014 The PHP Group                                |
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
    | This source file is subject to version 3.01 of the PHP license,      |     | 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        |     | that is bundled with this package in the file LICENSE, and is        |
Line 91  Since: DOM Level 2 Line 91  Since: DOM Level 2
 */  */
 PHP_METHOD(domimplementation, createDocumentType)  PHP_METHOD(domimplementation, createDocumentType)
 {  {
         zval *rv = NULL;  
         xmlDtd *doctype;          xmlDtd *doctype;
         int ret, name_len = 0, publicid_len = 0, systemid_len = 0;          int ret, name_len = 0, publicid_len = 0, systemid_len = 0;
         char *name = NULL, *publicid = NULL, *systemid = NULL;          char *name = NULL, *publicid = NULL, *systemid = NULL;
Line 141  PHP_METHOD(domimplementation, createDocumentType) Line 140  PHP_METHOD(domimplementation, createDocumentType)
                 RETURN_FALSE;                  RETURN_FALSE;
         }          }
   
        DOM_RET_OBJ(rv, (xmlNodePtr) doctype, &ret, NULL);        DOM_RET_OBJ((xmlNodePtr) doctype, &ret, NULL);
 }  }
 /* }}} end dom_domimplementation_create_document_type */  /* }}} end dom_domimplementation_create_document_type */
   
Line 151  Since: DOM Level 2 Line 150  Since: DOM Level 2
 */  */
 PHP_METHOD(domimplementation, createDocument)  PHP_METHOD(domimplementation, createDocument)
 {  {
        zval *node = NULL, *rv = NULL;        zval *node = NULL;
         xmlDoc *docp;          xmlDoc *docp;
         xmlNode *nodep;          xmlNode *nodep;
         xmlDtdPtr doctype = NULL;          xmlDtdPtr doctype = NULL;
Line 238  PHP_METHOD(domimplementation, createDocument) Line 237  PHP_METHOD(domimplementation, createDocument)
                 xmlFree(localname);                  xmlFree(localname);
         }          }
   
        DOM_RET_OBJ(rv, (xmlNodePtr) docp, &ret, NULL);        DOM_RET_OBJ((xmlNodePtr) docp, &ret, NULL);
   
         if (doctobj != NULL) {          if (doctobj != NULL) {
                 doctobj->document = ((dom_object *)((php_libxml_node_ptr *)docp->_private)->_private)->document;                  doctobj->document = ((dom_object *)((php_libxml_node_ptr *)docp->_private)->_private)->document;

Removed from v.1.1  
changed lines
  Added in v.1.1.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>