diff options
author | Stanislav Malyshev <stas@php.net> | 2014-07-27 00:14:28 -0700 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2014-07-28 11:38:06 -0700 |
commit | 180db42a90eac0a28403bd2d010e9a28f26a1b1e (patch) | |
tree | cde85c13b6549454cbe22a2ed4e8598a1a41ccd9 /ext/soap | |
parent | 7f865ffdd89c03a7dc5d2d4490b65b1b60ef4a31 (diff) | |
download | php-git-180db42a90eac0a28403bd2d010e9a28f26a1b1e.tar.gz |
fix SOAP for uninitialzed object
Diffstat (limited to 'ext/soap')
-rw-r--r-- | ext/soap/soap.c | 4 |
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; \ } \ } |