]> granicus.if.org Git - php/commitdiff
initialize variables and reduce the number of warnings
authorAntony Dovgal <tony2001@php.net>
Mon, 6 Feb 2006 11:28:20 +0000 (11:28 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 6 Feb 2006 11:28:20 +0000 (11:28 +0000)
ext/soap/php_sdl.c
ext/soap/soap.c
ext/spl/spl_iterators.c
ext/standard/math.c
ext/xmlreader/php_xmlreader.c
ext/xmlwriter/php_xmlwriter.c

index 75f8e661d2913d8d9decb82550561068d90ac05e..e2698ebcab3cd09b40236718287fbc7317220d82 100644 (file)
@@ -2264,7 +2264,7 @@ sdlPtr get_sdl(zval *this_ptr, char *uri TSRMLS_DC)
        char* old_error_code = SOAP_GLOBAL(error_code);
        int uri_len;
        php_stream_context *context=NULL;
-       zval **tmp, **proxy_host, **proxy_port, *orig_context, *new_context;
+       zval **tmp, **proxy_host, **proxy_port, *orig_context = NULL, *new_context = NULL;
        smart_str headers = {0};
 
        if (SUCCESS == zend_hash_find(Z_OBJPROP_P(this_ptr),
index f96f5c5806facdeca5bdffc102aed3d862ee77c7..517875a6f4a3ebd591b18297a37012c162ba8940 100644 (file)
@@ -2517,7 +2517,7 @@ PHP_METHOD(SoapClient, __call)
        zval **param;
        int arg_count;
        zval **tmp;
-       zend_bool free_soap_headers;
+       zend_bool free_soap_headers = 0;
 
        HashPosition pos;
 
index 642a1a276d82a109d018972cb55d404f50fd7359..0f7a40d657523d1ead0d0b664b14d2893fe985a6 100755 (executable)
@@ -838,7 +838,7 @@ static inline spl_dual_it_object* spl_dual_it_construct(INTERNAL_FUNCTION_PARAME
 {
        zval                 *zobject, *retval;
        spl_dual_it_object   *intern;
-       zend_class_entry     *ce;
+       zend_class_entry     *ce = NULL;
        int                   inc_refcount = 1;
 
 
index 061759dff8b448cda57eea08a864071255bd5044..04371cc6b59927a72b20f142613795eb1cd9e0a7 100644 (file)
@@ -448,7 +448,7 @@ PHP_FUNCTION(pow)
                /* calculate pow(long,long) in O(log exp) operations, bail if overflow */
                while (i >= 1) {
                        int overflow;
-                       double dval;
+                       double dval = 0.0;
 
                        if (i % 2) {
                                --i;
index 12d8ff8638cc918f3535a5b96cf048f9fd121760..fe8d789d4f699428dd81493b242a2524b69edab1 100644 (file)
@@ -832,7 +832,7 @@ PHP_METHOD(xmlreader, open)
        zval *id;
        int source_len = 0, encoding_len = 0;
        long options = 0;
-       xmlreader_object *intern;
+       xmlreader_object *intern = NULL;
        char *source, *valid_file = NULL;
        char *encoding = NULL;
        char resolved_path[MAXPATHLEN + 1];
@@ -977,7 +977,7 @@ PHP_METHOD(xmlreader, XML)
        zval *id;
        int source_len = 0, encoding_len = 0;
        long options = 0;
-       xmlreader_object *intern;
+       xmlreader_object *intern = NULL;
        char *source, *uri = NULL, *encoding = NULL;
        int resolved_path_len;
        char *directory=NULL, resolved_path[MAXPATHLEN];
index a10c16778e1dfc02514825f15158ee41b9c1f1bf..efd76463bdea6dd809968d17a2b03fec0d344022 100644 (file)
@@ -1341,7 +1341,7 @@ PHP_FUNCTION(xmlwriter_open_uri)
 
 #ifdef ZEND_ENGINE_2
        zval *this = getThis();
-       ze_xmlwriter_object *ze_obj;
+       ze_xmlwriter_object *ze_obj = NULL;
 #endif
 
 #ifndef ZEND_ENGINE_2
@@ -1420,7 +1420,7 @@ PHP_FUNCTION(xmlwriter_open_memory)
 
 #ifdef ZEND_ENGINE_2
        zval *this = getThis();
-       ze_xmlwriter_object *ze_obj;
+       ze_xmlwriter_object *ze_obj = NULL;
 #endif
 
 #ifdef ZEND_ENGINE_2