tony2001                Tue Jun 20 13:21:16 2006 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/dom    document.c 
  Log:
  MFH: nuke unused variables and init variables when needed
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/document.c?r1=1.68.2.3.2.1&r2=1.68.2.3.2.2&diff_format=u
Index: php-src/ext/dom/document.c
diff -u php-src/ext/dom/document.c:1.68.2.3.2.1 
php-src/ext/dom/document.c:1.68.2.3.2.2
--- php-src/ext/dom/document.c:1.68.2.3.2.1     Mon May 22 17:12:25 2006
+++ php-src/ext/dom/document.c  Tue Jun 20 13:21:16 2006
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: document.c,v 1.68.2.3.2.1 2006/05/22 17:12:25 rrichards Exp $ */
+/* $Id: document.c,v 1.68.2.3.2.2 2006/06/20 13:21:16 tony2001 Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1416,7 +1416,7 @@
        php_libxml_ref_obj *document = NULL;
        int validate, recover, resolve_externals, keep_blanks, substitute_ent;
        int resolved_path_len;
-       int old_error_reporting;
+       int old_error_reporting = 0;
        char *directory=NULL, resolved_path[MAXPATHLEN];
 
        if (id != NULL) {
@@ -1607,7 +1607,7 @@
 {
        zval *id;
        xmlDoc *docp;
-       int file_len = 0, bytes, format, saveempty;
+       int file_len = 0, bytes, format, saveempty = 0;
        dom_object *intern;
        dom_doc_propsptr doc_props;
        char *file;
@@ -1656,7 +1656,7 @@
        xmlChar *mem;
        dom_object *intern, *nodeobj;
        dom_doc_propsptr doc_props;
-       int size, format, saveempty;
+       int size, format, saveempty = 0;
        long options = 0;
 
        if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), 
"O|O!l", &id, dom_document_class_entry, &nodep, dom_node_class_entry, &options) 
== FAILURE) {
@@ -2174,7 +2174,6 @@
        int baseclass_len = 0, extendedclass_len = 0;
        zend_class_entry *basece = NULL, *ce = NULL;
        dom_object *intern;
-       zend_uchar type1, type2;
 
        if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), 
"Oss!", &id, dom_document_class_entry, &baseclass, &baseclass_len, 
&extendedclass, &extendedclass_len) == FAILURE) {
                return;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to