Skip to content

Commit 4fe9395

Browse files
committed
cleanup TSRMLS_FETCH in ext/soap
1 parent 169701a commit 4fe9395

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

ext/soap/php_encoding.c

-6
Original file line numberDiff line numberDiff line change
@@ -3413,7 +3413,6 @@ xmlNsPtr encode_add_ns(xmlNodePtr node, const char* ns)
34133413
}
34143414
if (xmlns == NULL) {
34153415
xmlChar* prefix;
3416-
TSRMLS_FETCH();
34173416

34183417
if ((prefix = zend_hash_str_find_ptr(&SOAP_GLOBAL(defEncNs), (char*)ns, strlen(ns))) != NULL) {
34193418
xmlns = xmlNewNs(node->doc->children, BAD_CAST(ns), prefix);
@@ -3457,7 +3456,6 @@ static void set_xsi_type(xmlNodePtr node, char *type)
34573456

34583457
void encode_reset_ns()
34593458
{
3460-
TSRMLS_FETCH();
34613459
SOAP_GLOBAL(cur_uniq_ns) = 0;
34623460
SOAP_GLOBAL(cur_uniq_ref) = 0;
34633461
if (SOAP_GLOBAL(ref_map)) {
@@ -3470,7 +3468,6 @@ void encode_reset_ns()
34703468

34713469
void encode_finish()
34723470
{
3473-
TSRMLS_FETCH();
34743471
SOAP_GLOBAL(cur_uniq_ns) = 0;
34753472
SOAP_GLOBAL(cur_uniq_ref) = 0;
34763473
if (SOAP_GLOBAL(ref_map)) {
@@ -3483,7 +3480,6 @@ void encode_finish()
34833480
encodePtr get_conversion(int encode)
34843481
{
34853482
encodePtr enc;
3486-
TSRMLS_FETCH();
34873483

34883484
if ((enc = zend_hash_index_find_ptr(&SOAP_GLOBAL(defEncIndex), encode)) == NULL) {
34893485
soap_error0(E_ERROR, "Encoding: Cannot find encoding");
@@ -3610,8 +3606,6 @@ static encodePtr get_array_type(xmlNodePtr node, zval *array, smart_str *type TS
36103606

36113607
static void get_type_str(xmlNodePtr node, const char* ns, const char* type, smart_str* ret)
36123608
{
3613-
TSRMLS_FETCH();
3614-
36153609
if (ns) {
36163610
xmlNsPtr xmlns;
36173611
if (SOAP_GLOBAL(soap_version) == SOAP_1_2 &&

ext/soap/php_sdl.c

-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ encodePtr get_encoder(sdlPtr sdl, const char *ns, const char *type)
168168
encodePtr get_encoder_ex(sdlPtr sdl, const char *nscat, int len)
169169
{
170170
encodePtr enc;
171-
TSRMLS_FETCH();
172171

173172
if ((enc = zend_hash_str_find_ptr(&SOAP_GLOBAL(defEnc), (char*)nscat, len)) != NULL) {
174173
return enc;

ext/soap/php_xml.c

-2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size)
133133
xmlParserCtxtPtr ctxt = NULL;
134134
xmlDocPtr ret;
135135

136-
TSRMLS_FETCH();
137-
138136
/*
139137
xmlInitParser();
140138
*/

0 commit comments

Comments
 (0)