diff options
| author | Zeev Suraski <zeev@php.net> | 2001-07-30 08:24:42 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2001-07-30 08:24:42 +0000 |
| commit | c43806f4152c3ff908c7ead039daf5e163700f0e (patch) | |
| tree | 8e6eb9e2aef084f04a7bfeb7269dd4d5186ac0c4 /ext/mailparse/rfc2045cdecode.c | |
| parent | 4187439cfffdbb2573453ea41a3c344632405f47 (diff) | |
| download | php-git-c43806f4152c3ff908c7ead039daf5e163700f0e.tar.gz | |
Zend compatibility patch
Diffstat (limited to 'ext/mailparse/rfc2045cdecode.c')
| -rwxr-xr-x | ext/mailparse/rfc2045cdecode.c | 5 |
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; } |
