[wsf-c-dev] svn commit r388 - wsf/php/src

svn at wso2.com svn at wso2.com
Wed Jan 10 04:31:36 PST 2007


Author: buddhika
Date: Wed Jan 10 04:31:31 2007
New Revision: 388

Modified:
   wsf/php/src/wsf.c
Log:
 removing unwanted variables


Modified: wsf/php/src/wsf.c
==============================================================================
--- wsf/php/src/wsf.c	(original)
+++ wsf/php/src/wsf.c	Wed Jan 10 04:31:31 2007
@@ -1844,29 +1844,24 @@
 		req_info->req_data_length = Z_STRLEN_PP(raw_post);
 	}
 
+	/** begin Wsdl Generation */
     if(SG(request_info).query_string && ((stricmp(SG(request_info).query_string, "wsdl") == 0) || 
 	(stricmp(SG(request_info).query_string, "wsdl2") == 0 ))){        
-        /** the request is for wsdl */
+      
 		char *service_name = NULL;
-		char *str1, *token, saveptr1;
-		const char *del[2];
-		int j = 0;
 		zval func, retval, param1, param2, param3, param4, param5;
 		zval *params[5];
 		axis2_hash_index_t *hi = NULL;
 		zval *f_val;
 		zend_file_handle script;
-		php_stream *stream = NULL;
-		char *location = NULL;
-		char resolved_path[MAXPATHLEN];
 		char *val = NULL;
 		int len = 0;
 		zval **tmpval;
 		char *binding_name = NULL;
 		char *wsdl_version = NULL;
-		/** wsdl generation stuff */
+	      
 
-		location = VCWD_GETCWD(resolved_path, MAXPATHLEN);
+		//location = VCWD_GETCWD(resolved_path, MAXPATHLEN);
 		service_name = svc_info->svc_name;
 	
 		params[0] = &param1;
@@ -1894,7 +1889,7 @@
 		    binding_name = estrdup("doc-lit");
 		}
 		
-		/** finding the the functions in the service.php file */
+		/** find the functions in the service.php file */
 		MAKE_STD_ZVAL(f_val);
 		array_init(f_val);
 
@@ -1939,16 +1934,14 @@
 		{
 			php_execute_script(&script TSRMLS_CC); 
 			if (call_user_function(CG(function_table), (zval**)NULL,
-	       				   &func, &retval, 4, params TSRMLS_CC ) == SUCCESS)
+	       				   &func, &retval, 5, params TSRMLS_CC ) == SUCCESS)
 			{
 			    if (Z_TYPE_P(&retval) == IS_STRING && Z_TYPE_P(&retval) != IS_NULL)
 			    {
 				val = estrdup(Z_STRVAL(retval));
 				len = Z_STRLEN(retval);
-                sapi_add_header("Content-Type:application/xml", sizeof("Content-Type:application/xml"),1);
-                
-                php_write(val, len TSRMLS_CC);
-				/*php_printf("%s", val);*/
+				sapi_add_header("Content-Type:application/xml", sizeof("Content-Type:application/xml"),1);
+				php_write(val, len TSRMLS_CC);
 			    }
 			    
 			    else
@@ -1957,7 +1950,7 @@
 			
 		}
 
-		/** end wsdl generation stuff */
+		/** end Wsdl generation stuff */
 
     }else {        
     




More information about the Wsf-c-dev mailing list