diff options
Diffstat (limited to 'ext/soap')
-rw-r--r-- | ext/soap/php_encoding.c | 6 | ||||
-rw-r--r-- | ext/soap/php_sdl.c | 1 | ||||
-rw-r--r-- | ext/soap/php_xml.c | 2 | ||||
-rw-r--r-- | ext/soap/soap.c | 2 |
4 files changed, 11 insertions, 0 deletions
diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index bbba4e36ca..d34587b85e 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -3413,6 +3413,7 @@ xmlNsPtr encode_add_ns(xmlNodePtr node, const char* ns) } if (xmlns == NULL) { xmlChar* prefix; + TSRMLS_FETCH(); if ((prefix = zend_hash_str_find_ptr(&SOAP_GLOBAL(defEncNs), (char*)ns, strlen(ns))) != NULL) { xmlns = xmlNewNs(node->doc->children, BAD_CAST(ns), prefix); @@ -3456,6 +3457,7 @@ static void set_xsi_type(xmlNodePtr node, char *type) void encode_reset_ns() { + TSRMLS_FETCH(); SOAP_GLOBAL(cur_uniq_ns) = 0; SOAP_GLOBAL(cur_uniq_ref) = 0; if (SOAP_GLOBAL(ref_map)) { @@ -3468,6 +3470,7 @@ void encode_reset_ns() void encode_finish() { + TSRMLS_FETCH(); SOAP_GLOBAL(cur_uniq_ns) = 0; SOAP_GLOBAL(cur_uniq_ref) = 0; if (SOAP_GLOBAL(ref_map)) { @@ -3480,6 +3483,7 @@ void encode_finish() encodePtr get_conversion(int encode) { encodePtr enc; + TSRMLS_FETCH(); if ((enc = zend_hash_index_find_ptr(&SOAP_GLOBAL(defEncIndex), encode)) == NULL) { soap_error0(E_ERROR, "Encoding: Cannot find encoding"); @@ -3606,6 +3610,8 @@ static encodePtr get_array_type(xmlNodePtr node, zval *array, smart_str *type TS static void get_type_str(xmlNodePtr node, const char* ns, const char* type, smart_str* ret) { + TSRMLS_FETCH(); + if (ns) { xmlNsPtr xmlns; if (SOAP_GLOBAL(soap_version) == SOAP_1_2 && diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 45582da6d9..798c06fdd2 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -168,6 +168,7 @@ encodePtr get_encoder(sdlPtr sdl, const char *ns, const char *type) encodePtr get_encoder_ex(sdlPtr sdl, const char *nscat, int len) { encodePtr enc; + TSRMLS_FETCH(); if ((enc = zend_hash_str_find_ptr(&SOAP_GLOBAL(defEnc), (char*)nscat, len)) != NULL) { return enc; diff --git a/ext/soap/php_xml.c b/ext/soap/php_xml.c index d59a65f182..5ad5548c40 100644 --- a/ext/soap/php_xml.c +++ b/ext/soap/php_xml.c @@ -133,6 +133,8 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size) xmlParserCtxtPtr ctxt = NULL; xmlDocPtr ret; + TSRMLS_FETCH(); + /* xmlInitParser(); */ diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 7c03b9ced4..2b37622a7a 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -2133,6 +2133,7 @@ static void soap_error_handler(int error_num, const char *error_filename, const zend_execute_data *_old_current_execute_data; int _old_http_response_code; char *_old_http_status_line; + TSRMLS_FETCH(); _old_in_compilation = CG(in_compilation); _old_current_execute_data = EG(current_execute_data); @@ -3383,6 +3384,7 @@ static void deserialize_parameters(xmlNodePtr params, sdlFunctionPtr function, i sdlParamPtr param = NULL; if (function != NULL && (param = zend_hash_index_find_ptr(function->requestParameters, cur_param)) == NULL) { + TSRMLS_FETCH(); soap_server_fault("Client", "Error cannot find parameter", NULL, NULL, NULL TSRMLS_CC); } if (param == NULL) { |