rem: if (((soap->mode & (SOAP_IO_STORE | SOAP_IO_CHUNK)) || (soap->mode & SOAP_ENC_XML)) && !soap->fprepare)
add: if ((soap->mode & SOAP_IO) == SOAP_IO_STORE || (((soap->mode & SOAP_IO) == SOAP_IO_CHUNK || (soap->mode & SOAP_ENC_XML)) && !soap->fpreparesend))
context: soap_begin_count(struct soap *soap){ soap_clr_attr(soap);  soap_set_local_namespaces(soap);  if (soap->mode & SOAP_ENC_DIME)    soap->mode = soap->omode | SOAP_IO_LENGTH | SOAP_ENC_DIME;  else  { soap->mode = soap->omode;    if (((soap->mode & (SOAP_IO_STORE | SOAP_IO_CHUNK)) || (soap->mode & SOAP_ENC_XML)) && !soap->fprepare)      soap->mode &= ~SOAP_IO_LENGTH;    else      soap->mode |= SOAP_IO_LENGTH;  }  if ((soap->mode & SOAP_ENC_ZLIB) && (soap->mode & SOAP_IO) == SOAP_IO_FLUSH)  { if (!(soap->mode & SOAP_ENC_DIME))      soap->mode &= ~SOAP_IO_LENGTH;    if (soap->mode & SOAP_ENC_XML)      soap->mode |= SOAP_IO_BUFFER;    else      soap->mode |= SOAP_IO_STORE;  }  soap->count = 0;  soap->ns = 0;  soap->null = 0;  soap->position = 0;  soap->mustUnderstand = 0;  soap->encoding = 0;  soap->part = SOAP_BEGIN;  soap->idnum = 0;  soap->dime_count = 0; /* count # of attachments */  soap->dime_size = 0; /* accumulate total size of attachments */  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Begin count phase (socket=%d mode=%hd count=%lu)\n", soap->socket, soap->mode, (unsigned long)soap->count));}