summaryrefslogtreecommitdiff
path: root/ext/libxml/libxml.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-08-29 10:10:05 +0000
committerPierre Joye <pajoye@php.net>2011-08-29 10:10:05 +0000
commit7246759277222bc1080947bd917b541e1db22305 (patch)
tree4db589eca1450ed7402994b956b2141d33e0b75a /ext/libxml/libxml.c
parent9382deede24b794cd22ab3b09154f15dfbfc2a38 (diff)
downloadphp-git-7246759277222bc1080947bd917b541e1db22305.tar.gz
- fix build, TSRMLS_FETCH must be the last declaration statement and init using TSRM cannot be done before either
Diffstat (limited to 'ext/libxml/libxml.c')
-rw-r--r--ext/libxml/libxml.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index 9863043b5d..39f3ee2f11 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -937,9 +937,11 @@ static xmlParserInputPtr _php_libxml_user_entity_loader(const char *URL,
**params[] = {&public, &system, &ctxzv},
*retval_ptr = NULL;
int retval;
+ zend_fcall_info *fci;
TSRMLS_FETCH();
- zend_fcall_info *fci = &LIBXML(entity_loader).fci;
-
+
+ fci = &LIBXML(entity_loader).fci;
+
ALLOC_INIT_ZVAL(public);
if (ID != NULL) {
ZVAL_STRING(public, ID, 1);