]> granicus.if.org Git - php/commitdiff
MFH: initialize variables and reduce the number of warnings
authorAntony Dovgal <tony2001@php.net>
Mon, 6 Feb 2006 11:28:41 +0000 (11:28 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 6 Feb 2006 11:28:41 +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 6ee6525b3b7e24d4cdec59b2b97ba9f6a9af657d..e3d049a5f3496814522c8e87a98ec848aa3f578a 100644 (file)
@@ -2523,7 +2523,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 e002773c9d5b54836717918e2d29633eda8486e1..4d4b4e331ac740d1ca881576c43b3463387bc567 100755 (executable)
@@ -821,7 +821,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;
 
        php_set_error_handling(EH_THROW, spl_ce_InvalidArgumentException TSRMLS_CC);
index 98f661c0e3275cafef4a8490dc267f21f4620dba..ca3d4cccd0576773978379be9439492645dac285 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 24ff43d31a890144db532f55dd00466b9376a064..22bf7fdc4d357fe3cadaa99268fa3323fa17285e 100644 (file)
@@ -831,7 +831,7 @@ PHP_METHOD(xmlreader, open)
 {
        zval *id;
        int source_len = 0;
-       xmlreader_object *intern;
+       xmlreader_object *intern = NULL;
        char *source, *valid_file = NULL;
        char resolved_path[MAXPATHLEN + 1];
        xmlTextReaderPtr reader = NULL;
@@ -953,7 +953,7 @@ PHP_METHOD(xmlreader, XML)
 {
        zval *id;
        int source_len = 0;
-       xmlreader_object *intern;
+       xmlreader_object *intern = NULL;
        char *source, *uri = NULL;
        int resolved_path_len;
        char *directory=NULL, resolved_path[MAXPATHLEN];
index a6d76c51f93336caa18c634ffc4ed127c1d58d29..5c66086eb57ad4cc3c60dab7a1e4096eed3b9e4c 100644 (file)
@@ -1615,7 +1615,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
@@ -1694,7 +1694,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