# if this breaks something, please let me know... i've got really no
# idea what i'm doing but this fixes the ZTS build :)
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
static int fsmagic(char *filename)
{
php_stream_statbuf stat_ssb;
+ TSRMLS_FETCH();
if(!php_stream_stat_path(filename, &stat_ssb)) {
return MIME_MAGIC_OK;