mirror of
https://github.com/php/php-src.git
synced 2026-03-29 03:32:20 +02:00
fix: error handling
This commit is contained in:
@@ -1394,6 +1394,7 @@ static void do_soap_call(zval* thisObj,
|
||||
char *buffer;
|
||||
int len;
|
||||
int ret = FALSE;
|
||||
int bailout = FALSE;
|
||||
int soap_version, old_soap_version;
|
||||
|
||||
if (zend_hash_find(Z_OBJPROP_P(thisObj), "trace", sizeof("trace"), (void **) &trace) == SUCCESS
|
||||
@@ -1478,7 +1479,11 @@ zend_try {
|
||||
}
|
||||
} zend_catch {
|
||||
ret = FALSE;
|
||||
bailout = TRUE;
|
||||
} zend_end_try();
|
||||
if (bailout) {
|
||||
zend_bailout();
|
||||
}
|
||||
if (!ret) {
|
||||
zval** fault;
|
||||
if (zend_hash_find(Z_OBJPROP_P(thisObj), "__soap_fault", sizeof("__soap_fault"), (void **) &fault) == SUCCESS) {
|
||||
|
||||
Reference in New Issue
Block a user