summaryrefslogtreecommitdiff
path: root/ext/soap
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2014-07-27 00:14:28 -0700
committerStanislav Malyshev <stas@php.net>2014-07-28 11:38:06 -0700
commit180db42a90eac0a28403bd2d010e9a28f26a1b1e (patch)
treecde85c13b6549454cbe22a2ed4e8598a1a41ccd9 /ext/soap
parent7f865ffdd89c03a7dc5d2d4490b65b1b60ef4a31 (diff)
downloadphp-git-180db42a90eac0a28403bd2d010e9a28f26a1b1e.tar.gz
fix SOAP for uninitialzed object
Diffstat (limited to 'ext/soap')
-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 32bf5ca6f6..0453dc28e0 100644
--- a/ext/soap/soap.c
+++ b/ext/soap/soap.c
@@ -151,7 +151,9 @@ static void soap_error_handler(int error_num, const char *error_filename, const
if (zend_hash_find(Z_OBJPROP_P(this_ptr),"service", sizeof("service"), (void **)&tmp) != FAILURE) { \
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; \
} \
}