summaryrefslogtreecommitdiff
path: root/ext/mailparse/rfc2045cdecode.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mailparse/rfc2045cdecode.c')
-rwxr-xr-xext/mailparse/rfc2045cdecode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/mailparse/rfc2045cdecode.c b/ext/mailparse/rfc2045cdecode.c
index 858f48dfde..8ec5d5de76 100755
--- a/ext/mailparse/rfc2045cdecode.c
+++ b/ext/mailparse/rfc2045cdecode.c
@@ -28,13 +28,14 @@ void rfc2045_cdecode_start(struct rfc2045 *p,
void *miscptr)
{
enum mbfl_no_encoding from = mbfl_no_encoding_8bit;
-
+ TSRMLS_FETCH();
+
if (p->content_transfer_encoding)
{
from = mbfl_name2no_encoding(p->content_transfer_encoding);
if (from == mbfl_no_encoding_invalid) {
zend_error(E_WARNING, "%s(): I don't know how to decode %s transfer encoding!",
- get_active_function_name(),
+ get_active_function_name(TSRMLS_C),
p->content_transfer_encoding);
from = mbfl_no_encoding_8bit;
}