summaryrefslogtreecommitdiff
path: root/ext/soap/soap.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/soap/soap.c')
-rw-r--r--ext/soap/soap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/soap/soap.c b/ext/soap/soap.c
index 4e5a2b35ea..ec2c2f0c17 100644
--- a/ext/soap/soap.c
+++ b/ext/soap/soap.c
@@ -149,7 +149,9 @@ static void soap_error_handler(int error_num, const char *error_filename, const
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(getThis()),"service", sizeof("service")-1)) != NULL) { \
ss = (soapServicePtr)zend_fetch_resource(tmp TSRMLS_CC, -1, "service", NULL, 1, le_service); \
} else { \
- ss = NULL; \
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can not fetch service object"); \
+ SOAP_SERVER_END_CODE(); \
+ return; \
} \
}