From: Pierre Joye Date: Mon, 29 Aug 2011 10:10:05 +0000 (+0000) Subject: - fix build, TSRMLS_FETCH must be the last declaration statement and init using TSRM... X-Git-Tag: php-5.4.0beta1~361 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7246759277222bc1080947bd917b541e1db22305;p=php - fix build, TSRMLS_FETCH must be the last declaration statement and init using TSRM cannot be done before either --- 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);