File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,9 @@ xmlDocPtr soap_xmlParseFile(const char *filename TSRMLS_DC)
100
100
ctxt -> sax -> warning = NULL ;
101
101
ctxt -> sax -> error = NULL ;
102
102
/*ctxt->sax->fatalError = NULL;*/
103
- old = php_libxml_disable_entity_loader (1 );
103
+ old = php_libxml_disable_entity_loader (1 TSRMLS_CC );
104
104
xmlParseDocument (ctxt );
105
- php_libxml_disable_entity_loader (old );
105
+ php_libxml_disable_entity_loader (old TSRMLS_CC );
106
106
if (ctxt -> wellFormed ) {
107
107
ret = ctxt -> myDoc ;
108
108
if (ret -> URL == NULL && ctxt -> directory != NULL ) {
@@ -133,6 +133,8 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size)
133
133
xmlParserCtxtPtr ctxt = NULL ;
134
134
xmlDocPtr ret ;
135
135
136
+ TSRMLS_FETCH ();
137
+
136
138
/*
137
139
xmlInitParser();
138
140
*/
@@ -148,9 +150,9 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size)
148
150
#if LIBXML_VERSION >= 20703
149
151
ctxt -> options |= XML_PARSE_HUGE ;
150
152
#endif
151
- old = php_libxml_disable_entity_loader (1 );
153
+ old = php_libxml_disable_entity_loader (1 TSRMLS_CC );
152
154
xmlParseDocument (ctxt );
153
- php_libxml_disable_entity_loader (old );
155
+ php_libxml_disable_entity_loader (old TSRMLS_CC );
154
156
if (ctxt -> wellFormed ) {
155
157
ret = ctxt -> myDoc ;
156
158
if (ret -> URL == NULL && ctxt -> directory != NULL ) {
You can’t perform that action at this time.
0 commit comments