cvs: pecl /soap php_http.c soap.c

From: Date: Fri, 09 Jan 2004 16:35:04 +0000
Subject: cvs: pecl /soap php_http.c soap.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-712@lists.php.net to get a copy of this message
dmitry Fri Jan 9 11:35:04 2004 EDT Modified files: /pecl/soap soap.c php_http.c Log: BUGFIX: close string with smart_str_0() Index: pecl/soap/soap.c diff -u pecl/soap/soap.c:1.25 pecl/soap/soap.c:1.26 --- pecl/soap/soap.c:1.25 Fri Jan 9 10:31:09 2004 +++ pecl/soap/soap.c Fri Jan 9 11:35:04 2004 @@ -2215,6 +2215,7 @@ } } smart_str_appendc(buf, ')'); + smart_str_0(buf); } static void type_to_string(sdlTypePtr type, smart_str *buf, int level) @@ -2257,6 +2258,7 @@ smart_str_appendl(buf, ";\n", 2); } smart_str_free(&spaces); + smart_str_0(buf); } /* Deletes */ Index: pecl/soap/php_http.c diff -u pecl/soap/php_http.c:1.14 pecl/soap/php_http.c:1.15 --- pecl/soap/php_http.c:1.14 Fri Jan 9 09:11:34 2004 +++ pecl/soap/php_http.c Fri Jan 9 11:35:04 2004 @@ -163,6 +163,7 @@ if(zend_hash_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password"), (void **)&password) == SUCCESS) { smart_str_appendl(&auth, Z_STRVAL_PP(password), Z_STRLEN_PP(password)); } + smart_str_0(&auth); buf = php_base64_encode(auth.c, auth.len, &len); smart_str_append_const(&soap_headers, "Authorization: Basic "); smart_str_appendl(&soap_headers, buf, len); @@ -194,6 +195,7 @@ smart_str_append_const(&soap_headers, "\r\n"); smart_str_appendl(&soap_headers, buf, buf_size); + smart_str_0(&soap_headers); err = php_stream_write(stream, soap_headers.c, soap_headers.len); if(err != soap_headers.len) {

« previous php.pecl.cvs (#712) next »