]> granicus.if.org Git - php/commitdiff
Fix ZTS build
authorSteph Fox <sfox@php.net>
Mon, 18 Feb 2008 00:46:07 +0000 (00:46 +0000)
committerSteph Fox <sfox@php.net>
Mon, 18 Feb 2008 00:46:07 +0000 (00:46 +0000)
ext/phar/util.c

index bdb0584d1dee80b350472581b3955495a0b64c5c..d01c8cd3706e738bd6bce565d89613c3ace296d3 100644 (file)
 /* 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);
                }