diff options
author | Johannes Schlüter <johannes@php.net> | 2013-02-21 15:08:58 +0100 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2013-02-21 15:08:58 +0100 |
commit | fcd4b5335a6df4e0676ee32e2267ca71d70fe623 (patch) | |
tree | 66393fe3922c7c8154af6394dcd224dc101b2c9a /ext | |
parent | 7b113d789df26b2ad560e747cac0b1ed2043adec (diff) | |
download | php-git-fcd4b5335a6df4e0676ee32e2267ca71d70fe623.tar.gz |
Fix TSRM (after afc1debb)
Diffstat (limited to 'ext')
-rw-r--r-- | ext/soap/php_xml.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/soap/php_xml.c b/ext/soap/php_xml.c index 78231000a0..2f2c5c9fdf 100644 --- a/ext/soap/php_xml.c +++ b/ext/soap/php_xml.c @@ -100,9 +100,9 @@ xmlDocPtr soap_xmlParseFile(const char *filename TSRMLS_DC) ctxt->sax->warning = NULL; ctxt->sax->error = NULL; /*ctxt->sax->fatalError = NULL;*/ - old = php_libxml_disable_entity_loader(1); + old = php_libxml_disable_entity_loader(1 TSRMLS_CC); xmlParseDocument(ctxt); - php_libxml_disable_entity_loader(old); + php_libxml_disable_entity_loader(old TSRMLS_CC); if (ctxt->wellFormed) { ret = ctxt->myDoc; if (ret->URL == NULL && ctxt->directory != NULL) { @@ -133,6 +133,8 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size) xmlParserCtxtPtr ctxt = NULL; xmlDocPtr ret; + TSRMLS_FETCH(); + /* xmlInitParser(); */ @@ -148,9 +150,9 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size) #if LIBXML_VERSION >= 20703 ctxt->options |= XML_PARSE_HUGE; #endif - old = php_libxml_disable_entity_loader(1); + old = php_libxml_disable_entity_loader(1 TSRMLS_CC); xmlParseDocument(ctxt); - php_libxml_disable_entity_loader(old); + php_libxml_disable_entity_loader(old TSRMLS_CC); if (ctxt->wellFormed) { ret = ctxt->myDoc; if (ret->URL == NULL && ctxt->directory != NULL) { |