From: Steph Fox Date: Mon, 18 Feb 2008 00:46:07 +0000 (+0000) Subject: Fix ZTS build X-Git-Tag: RELEASE_2_0_0a1~448 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6acac494abe478ad12ce0dad9feb60dcc8b757ce;p=php Fix ZTS build --- diff --git a/ext/phar/util.c b/ext/phar/util.c index bdb0584d1d..d01c8cd370 100644 --- a/ext/phar/util.c +++ b/ext/phar/util.c @@ -25,9 +25,10 @@ /* retrieve a phar_entry_info's current file pointer for reading contents */ php_stream *phar_get_efp(phar_entry_info *entry) { + TSRMLS_FETCH(); + if (entry->fp_type == PHAR_FP) { if (!entry->phar->fp) { - TSRMLS_FETCH(); /* re-open just in time for cases where our refcount reached 0 on the phar archive */ phar_open_archive_fp(entry->phar TSRMLS_CC); }