cvs: php-src /ext/soap soap.c
| From: | Dmitry Stogov | Date: | Thu, 12 Feb 2004 16:42:00 +0000 |
| Subject: | cvs: php-src /ext/soap soap.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-26164@lists.php.net to get a copy of this message | ||
dmitry Thu Feb 12 11:42:00 2004 EDT
Modified files:
/php-src/ext/soap soap.c
Log:
fix: possible crash was fixed
http://cvs.php.net/diff.php/php-src/ext/soap/soap.c?r1=1.80&r2=1.81&ty=u
Index: php-src/ext/soap/soap.c
diff -u php-src/ext/soap/soap.c:1.80 php-src/ext/soap/soap.c:1.81
--- php-src/ext/soap/soap.c:1.80 Thu Feb 12 05:43:24 2004
+++ php-src/ext/soap/soap.c Thu Feb 12 11:41:58 2004
@@ -17,7 +17,7 @@
| Dmitry Stogov <dmitry@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: soap.c,v 1.80 2004/02/12 10:43:24 zeev Exp $ */
+/* $Id: soap.c,v 1.81 2004/02/12 16:41:58 dmitry Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -3190,7 +3190,7 @@
if (function->responseParameters && function->responseParameters->pListHead) {
sdlParamPtr *param;
param = function->responseParameters->pListHead->pData;
- if ((*param)->encode->details.type_str) {
+ if ((*param)->encode && (*param)->encode->details.type_str) {
smart_str_appendl(buf, (*param)->encode->details.type_str,
strlen((*param)->encode->details.type_str));
smart_str_appendc(buf, ' ');
} else {
@@ -3209,7 +3209,7 @@
i = 0;
zend_hash_internal_pointer_reset_ex(function->requestParameters, &pos);
while (zend_hash_get_current_data_ex(function->requestParameters, (void **)¶m,
&pos) != FAILURE) {
- if ((*param)->encode->details.type_str) {
+ if ((*param)->encode && (*param)->encode->details.type_str) {
smart_str_appendl(buf, (*param)->encode->details.type_str,
strlen((*param)->encode->details.type_str));
} else {
smart_str_appendl(buf, "mixed ", 6);