summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Roobol <sander@php.net>2002-06-20 20:13:20 +0000
committerSander Roobol <sander@php.net>2002-06-20 20:13:20 +0000
commit7c4ad7eda4c95ddfbba53d18b516b7a029ae619d (patch)
treefe925b5f0bebddff48844dbc0bf835dd23455669
parent3b58ead0be3ed7ddc090b007a3de494b2efef0c1 (diff)
downloadphp-git-7c4ad7eda4c95ddfbba53d18b516b7a029ae619d.tar.gz
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 :)
-rw-r--r--ext/mime_magic/mime_magic.c2
1 files changed, 2 insertions, 0 deletions
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;