ID: 31646
Updated by: sniper@php.net
Reported By: webmaster at alikuvkoutek dot cz
-Status: Open
+Status: Assigned
Bug Type: IMAP related
Operating System: Linux
PHP Version: 5CVS-2005-05-05 (dev)
-Assigned To:
+Assigned To: sniper
Previous Comments:
------------------------------------------------------------------------
[2005-05-08 21:54:57] webmaster at alikuvkoutek dot cz
Build Date May 5 2005 09:49:05
See backtrace from gandie.
------------------------------------------------------------------------
[2005-05-08 21:48:05] gandie at rootshell dot cz
BACKTRACE:
#0 0xb79007d4 in free () from /lib/libc.so.6
#1 0x082e51ee in fs_give ()
#2 0x08351b47 in _IO_stdin_used ()
#3 0x00000000 in ?? ()
#4 0x00000000 in ?? ()
#5 0x0851d1a0 in ?? ()
#6 0x0882e528 in ?? ()
#7 0x0882e588 in ?? ()
#8 0x0882e520 in ?? ()
#9 0x082fe788 in mail_free_body_parameter ()
#10 0x0882e578 in ?? ()
#11 0x0851d1a0 in ?? ()
#12 0x0882e528 in ?? ()
#13 0x082fe5a2 in mail_free_body_data ()
#14 0xbfffacc4 in ?? ()
#15 0x0882e598 in ?? ()
#16 0xbfffacc0 in ?? ()
#17 0x082fe548 in mail_free_body ()
#18 0x0882e520 in ?? ()
#19 0x0882e694 in ?? ()
#20 0x0882bcbc in ?? ()
#21 0x0810cfc0 in zif_imap_mail_compose ()
#22 0x00000000 in ?? ()
(gdb) frame 21
#21 0x0810cfc0 in zif_imap_mail_compose ()
(gdb) frame 22
#22 0x00000000 in ?? ()
------------------------------------------------------------------------
[2005-01-21 20:58:43] webmaster at alikuvkoutek dot cz
<?
$envelope["from"]= 'joe@example.com';
$envelope["return_path"]= 'joe@example.com';
$envelope["custom_headers"][] = "X-Priority: 3";
$body[1]["type"]=TYPETEXT;
$body[1]["subtype"]="plain";
$body[1]["encoding"]=ENCQUOTEDPRINTABLE ;
$body[1]["charset"]='windows-1250'; // when removed, all is ok
$body[1]["contents.data"]='text';
$envelope = unserialize(serialize($envelope));
$body = unserialize(serialize($body));
echo nl2br( imap_mail_compose($envelope, $body) );
?>
<hr />
------------------------------------------------------------------------
[2005-01-21 20:47:20] derick@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2005-01-21 19:27:01] webmaster at alikuvkoutek dot cz
Description:
------------
When set $body[][charset], the imap_mail_compose() don't work. The
script is terminated on that line and no output is generated.
The source code and information from phpinfo() is available over the
URL (links are on the top of the page).
Reproduce code:
---------------
http://www.alikuvkoutek.cz/t.php
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31646&edit=1