From: Sander Roobol Date: Thu, 20 Jun 2002 20:13:20 +0000 (+0000) Subject: ZTS fixes X-Git-Tag: php-4.3.0dev_zend2_alpha2~175 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c4ad7eda4c95ddfbba53d18b516b7a029ae619d;p=php ZTS fixes # if this breaks something, please let me know... i've got really no # idea what i'm doing but this fixes the ZTS build :) --- diff --git a/ext/mime_magic/mime_magic.c b/ext/mime_magic/mime_magic.c index e2dd3d0a1c..0c3a922f39 100644 --- a/ext/mime_magic/mime_magic.c +++ b/ext/mime_magic/mime_magic.c @@ -949,6 +949,7 @@ static int magic_process(char *filename) unsigned char buf[HOWMANY + 1]; /* one extra for terminating '\0' */ int nbytes = 0; /* number of bytes read from a datafile */ int result; + TSRMLS_FETCH(); /* * first try judging the file based on its filesystem status @@ -1035,6 +1036,7 @@ static void tryit(unsigned char *buf, int nb, int checkzmagic) static int fsmagic(char *filename) { php_stream_statbuf stat_ssb; + TSRMLS_FETCH(); if(!php_stream_stat_path(filename, &stat_ssb)) { return MIME_MAGIC_OK;