]> granicus.if.org Git - php/commitdiff
ZTS fixes
authorSander Roobol <sander@php.net>
Thu, 20 Jun 2002 20:13:20 +0000 (20:13 +0000)
committerSander Roobol <sander@php.net>
Thu, 20 Jun 2002 20:13:20 +0000 (20:13 +0000)
# if this breaks something, please let me know... i've got really no
# idea what i'm doing but this fixes the ZTS build :)

ext/mime_magic/mime_magic.c

index e2dd3d0a1c58e981ee05d9bd7fbff39ef9456b3c..0c3a922f39913e80305deffe2648066ad75117ee 100644 (file)
@@ -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;