php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32589 imap_mail_compose doesn?t work properly
Submitted: 2005-04-05 14:59 UTC Modified: 2006-01-04 22:02 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: svoboda at svoon dot net Assigned: iliaa (profile)
Status: Closed Package: IMAP related
PHP Version: 5CVS, 4CVS (2005-07-20) OS: debian
Private report: No CVE-ID: None
 [2005-04-05 14:59 UTC] svoboda at svoon dot net
Description:
------------
when use charset field in part array, fction exit with segmentation fault.

Reproduce code:
---------------
$m_envelope["To"] = "mail@example.com";
$m_part1["type"] = TYPEMULTIPART;
$m_part1["subtype"] = "mixed";
$m_part2["type"] = TYPETEXT;
$m_part2["subtype"] = "plain";
$m_part2["description"] = "text_message";

$m_part2["charset"] = "ISO-8859-2";

$m_part2["contents.data"] = "hello";
$m_body[1] = $m_part1;
$m_body[2] = $m_part2;
echo nl2br(imap_mail_compose($m_envelope, $m_body));



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-05 16:49 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 [2005-04-09 04:55 UTC] svoboda at svoon dot net
I have tryied php4-STABLE-200504090239, but the problem still remains.
 [2005-04-09 09:46 UTC] sniper@php.net
I can not reproduce this either with latest CVS (any branch).
(and snapshots are fine too)

Get the latest here:
http://snaps.php.net/php4-STABLE-latest.tar.gz

 [2005-07-19 12:16 UTC] svoboda at svoon dot net
hello,
in new version php 4.4.0 the bug remains. Script outputs no data, error log is empty too, only processing exit.
If I compile version php4-STABLE-200412272330 with the same configure command, it works well.

I have c-client with kerberos from debian packages libc-client-dev libc-client-ssl2001 libc-client2002edebian
If you need some more info, pleas let me know.

thank you a lot
 [2005-07-19 21:17 UTC] sniper@php.net
You're not really using PHP 4.4.0 downloaded from php.net.
The snapshot and release packages do NOT differ anywhere near IMAP stuff.

 [2005-07-20 08:48 UTC] svoboda at svoon dot net
Hello,
have you red my text carefuly? I wrote, that version php4-STABLE-200412272330 was OK, but not, that this snapshost is version 4.4.0. This snapshot, as You can see in his name, is a half year old and I wrote it only becouse of explaining, that on the same system with the same configuration command the old version works well, and the new version does not.
btw. You can be sure I am using all versions downloaded from php.net - strictli speaking from http://cz.php.net/get/php-4.4.0.tar.gz/from/cz.php.net/mirror ie.
Ondrej.
 [2005-07-20 09:57 UTC] sniper@php.net
4.4.0 works fine for me. Provide a GDB backtrace of the crash.
 [2005-07-20 13:48 UTC] svoboda at svoon dot net
hello,
I have identified, if I compile PHP with --enable-debug option in configure line, then the imap_mail_compose function works perfect. Would you like me to send you GDB with or without --enable-debug option?

thank you
Ondrej
 [2005-07-20 20:46 UTC] sniper@php.net
Verified, assigned to Ilia who was suppose to FIX this before. :)

 [2005-08-31 00:05 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 [2006-01-04 10:04 UTC] svoboda at svoon dot net
I have installed PHP 4.4.1 version today, and the bug is back again. On PHP 5.1.1 it works OK, but 4.4.1 not.
 [2006-01-04 10:32 UTC] sniper@php.net
Ilia, one more time? (perhaps bug #35669 is related?)
 [2006-01-04 21:44 UTC] iliaa@php.net
The bug is not related to the other imap bug. As far as PHP 4 the fix is found in 4.4.2-dev.
 [2006-01-04 21:53 UTC] svoboda at svoon dot net
HI,
I don't understand. You write that bug has been fixed in PHP 4.4.2CVS, but you wrote in August that bug is fixed and PHP 4.4.1 was released on last October - so is this bug realy fixed now?
thanks
 [2006-01-04 22:02 UTC] iliaa@php.net
Latest CVS does not exhibit the problem given the test script, so I consider the issue fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC