ID: 5084
Updated by: chagenbu
Reported By: [EMAIL PROTECTED]
Old-Status: Assigned
Status: Feedback
Bug Type: IMAP related
PHP Version: 4.0 Release Candidate 2
Assigned To: sniper
Comments:
Can you test this with 4.0.6-cvs? It is very likely fixed now.
Previous Comments:
---------------------------------------------------------------------------
[2000-07-29 23:04:42] [EMAIL PROTECTED]
I made a partial fix to this which is committed into the CVS. But there is still some
bugs in this.
For now at least the script below works:
<?php
$envelope["from"]="[EMAIL PROTECTED]";
$envelope["to"]="musone@darkstar";
$envelope["cc"]="[EMAIL PROTECTED]";
$part1["type"]=TYPEMULTIPART;
$part1["subtype"]="mixed";
$filename="/tmp/imap.c.gz";
$fp=fopen($filename,"r");
$contents=fread($fp,filesize($filename));
fclose($fp);
$part2["type"]=TYPEAPPLICATION;
$part2["encoding"]=ENCBINARY;
$part2["subtype"]="octet-stream";
$part2["description"]=basename($filename);
$part2["contents.data"]=$contents;
$part3["type"]=TYPETEXT;
$part3["subtype"]="plain";
$part3["description"]="description3";
$part3["contents.data"]="contents.data3nnnt";
$body[1]=$part1;
$body[2]=$part2;
$body[3]=$part3;
echo nl2br(imap_mail_compose($envelope,$body));
?>
I will write some kind of documentation of this soon as possible.
--Jani
---------------------------------------------------------------------------
[2000-07-29 02:49:38] [EMAIL PROTECTED]
IMAP related.
--Jani
---------------------------------------------------------------------------
[2000-07-29 02:43:54] [EMAIL PROTECTED]
Same as #3337
--Jani
---------------------------------------------------------------------------
[2000-06-16 17:11:06] [EMAIL PROTECTED]
<?php
print "bla<br>n";
$env = array("From: [EMAIL PROTECTED]");
$body = array("Part 1");
print imap_mail_compose($env,$body);
?>
./configure --with-apache=../apache_1.3.9 --with-ldap=/opt/ldap
--with-gdbm --with-imap=/opt/apache/apache/src/c-client/imap-4.7b/ --with-zlib
--enable-sysvshm
gdb backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x80ae8a6 in php_if_imap_mail_compose (ht=2, return_value=0x839834c, this_ptr=0x0,
return_value_used=1) at php_imap.c:3094
3094 bod->nested.part=mail_newbody_part();
(gdb) bt
#0 0x80ae8a6 in php_if_imap_mail_compose (ht=2, return_value=0x839834c, this_ptr=0x0,
return_value_used=1) at php_imap.c:3094
#1 0x81038dc in execute (op_array=0x83971d4) at ./zend_execute.c:1574
#2 0x8087fab in php_execute_script (primary_file=0xbffffbec) at main.c:1200
#3 0x80a2b20 in apache_php_module_main (r=0x837f674, fd=40, display_source_mode=0)
at sapi_apache.c:93
#4 0x80844db in send_php ()
#5 0x808451c in send_parsed_php ()
#6 0x8150263 in ap_invoke_handler ()
#7 0x81639b9 in process_request_internal ()
#8 0x8163a1c in ap_process_request ()
#9 0x815b34e in child_main ()
#10 0x815b4fc in make_child ()
#11 0x815b659 in startup_children ()
#12 0x815bc86 in standalone_main ()
#13 0x815c419 in main ()
#14 0x400f6cb3 in __libc_start_main (main=0x815c0cc <main>, argc=2, argv=0xbffffda4,
init=0x8082928 <_init>, fini=0x822b90c <_fini>, rtld_fini=0x4000a350 <_dl_fini>,
stack_end=0xbffffd9c) at ../sysdeps/generic/libc-start.c:78
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=5084&edit=2
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]