diff options
author | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
commit | 88ec761548b66f58acc1a86cdd0fc164ca925476 (patch) | |
tree | d0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/imap/tests | |
parent | 268984b4787e797db6054313fc9ba3b9e845306e (diff) | |
download | php-git-PECL_OPENSSL.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/imap/tests')
-rw-r--r-- | ext/imap/tests/bug31142_1.phpt | 59 | ||||
-rw-r--r-- | ext/imap/tests/bug31142_2.phpt | 30 | ||||
-rw-r--r-- | ext/imap/tests/bug32589.phpt | 34 | ||||
-rw-r--r-- | ext/imap/tests/bug35669.phpt | 68 | ||||
-rw-r--r-- | ext/imap/tests/imap_utf8.phpt | 22 |
5 files changed, 0 insertions, 213 deletions
diff --git a/ext/imap/tests/bug31142_1.phpt b/ext/imap/tests/bug31142_1.phpt deleted file mode 100644 index efb92b7b45..0000000000 --- a/ext/imap/tests/bug31142_1.phpt +++ /dev/null @@ -1,59 +0,0 @@ ---TEST-- -Bug #31142 test #1 (imap_mail_compose() generates incorrect output) ---SKIPIF-- -<?php - if (!extension_loaded("imap")) { - die("skip imap extension not available"); - } -?> ---FILE-- -<?php - -$envelope["from"]= "joe@example.com"; -$envelope["to"] = "foo@example.com"; -$envelope["cc"] = "bar@example.com"; - -$part1["type"] = TYPEMULTIPART; -$part1["subtype"] = "mixed"; - -$part2["type"] = TYPEAPPLICATION; -$part2["encoding"] = ENCBINARY; -$part2["subtype"] = "octet-stream"; -$part2["description"] = "some file"; -$part2["contents.data"] = "ABC"; - -$part3["type"] = TYPETEXT; -$part3["subtype"] = "plain"; -$part3["description"] = "description3"; -$part3["contents.data"] = "contents.data3\n\n\n\t"; - -$body[1] = $part1; -$body[2] = $part2; -$body[3] = $part3; - -echo imap_mail_compose($envelope, $body); - -?> ---EXPECTF-- -From: joe@example.com -To: foo@example.com -cc: bar@example.com -MIME-Version: 1.0 -Content-Type: MULTIPART/mixed; BOUNDARY="%s" - ---%s -Content-Type: APPLICATION/octet-stream -Content-Transfer-Encoding: BASE64 -Content-Description: some file - -QUJD - ---%s -Content-Type: TEXT/plain; CHARSET=US-ASCII -Content-Description: description3 - -contents.data3 - - - ---%s-- diff --git a/ext/imap/tests/bug31142_2.phpt b/ext/imap/tests/bug31142_2.phpt deleted file mode 100644 index 2a81760a7b..0000000000 --- a/ext/imap/tests/bug31142_2.phpt +++ /dev/null @@ -1,30 +0,0 @@ ---TEST-- -Bug #31142 test #2 (imap_mail_compose() generates incorrect output) ---SKIPIF-- -<?php - if (!extension_loaded("imap")) { - die("skip imap extension not available"); - } -?> ---FILE-- -<?php -$envelope["from"]= 'host@domain.com'; -$envelope["return_path"]= 'host@domain.com'; - -$part1["type"]=TYPETEXT; -$part1["subtype"]="plain"; -$part1["encoding"]=ENCQUOTEDPRINTABLE ; -$part1["charset"]='iso-8859-2'; -$part1["contents.data"]=imap_8bit('asn řkl'); - -$body = array($part1); - -echo imap_mail_compose($envelope, $body); -?> ---EXPECT-- -From: host@domain.com -MIME-Version: 1.0 -Content-Type: TEXT/plain; CHARSET=iso-8859-2 -Content-Transfer-Encoding: QUOTED-PRINTABLE - -asn =C5=99kl
\ No newline at end of file diff --git a/ext/imap/tests/bug32589.phpt b/ext/imap/tests/bug32589.phpt deleted file mode 100644 index c5030e8970..0000000000 --- a/ext/imap/tests/bug32589.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -Bug #32589 (crash inside imap_mail_compose() function) ---SKIPIF-- -<?php - if (!extension_loaded("imap")) { - die("skip imap extension not available"); - } -?> ---FILE-- -<?php -$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 imap_mail_compose($m_envelope, $m_body); -?> ---EXPECTF-- -MIME-Version: 1.0 -Content-Type: MULTIPART/mixed; BOUNDARY="%s" - -%s -Content-Type: TEXT/plain; CHARSET=ISO-8859-2 -Content-Description: text_message - -hello -%s diff --git a/ext/imap/tests/bug35669.phpt b/ext/imap/tests/bug35669.phpt deleted file mode 100644 index 1cc4e702b9..0000000000 --- a/ext/imap/tests/bug35669.phpt +++ /dev/null @@ -1,68 +0,0 @@ ---TEST-- -Bug #35669 (imap_mail_compose() crashes with multipart-multiboundary-email) ---SKIPIF-- -<?php - if (!extension_loaded("imap")) { - die("skip imap extension not available"); - } -?> ---FILE-- -<?php - $envelope["from"] = 'Santa <somewhere@northpole.gov>'; - $envelope["to"] = 'The bad smurf <bad@smurf.com>'; - $envelope['date'] = 'Wed, 04 Jan 2006 19:24:43 -0500'; - - $multipart["type"] = TYPEMULTIPART; - $multipart["subtype"] = "MIXED"; - $body[] = $multipart; //add multipart stuff - - $textpart["type"] = TYPEMULTIPART; - $textpart["subtype"] = "ALTERNATIVE"; - $body[] = $textpart; //add body part - - $plain["type"] = TYPETEXT; - $plain["subtype"] = "PLAIN"; - $plain["charset"] = "iso-8859-1"; - $plain["encoding"] = ENCQUOTEDPRINTABLE; - $plain["description"] = "Plaintype part of message"; - $plain['disposition'] = "inline"; - $plain["contents.data"] = 'See mom, it will crash'; - - $body[] = $plain; //next add plain text part - - $html["type"] = TYPETEXT; - $html["subtype"] = "HTML"; - $html["charset"] = "iso-8859-1"; - $html["encoding"] = ENCQUOTEDPRINTABLE; - $html["description"] = "HTML part of message"; - $html['disposition'] = "inline"; - $html["contents.data"] = 'See mom, it will <b>crash</b>'; - - $body[] = $html; - - echo imap_mail_compose($envelope, $body); -?> ---EXPECTF-- -Date: Wed, 04 Jan 2006 19:24:43 -0500 -From: Santa <somewhere@northpole.gov> -To: The bad smurf <bad@smurf.com> -MIME-Version: 1.0 -Content-Type: MULTIPART/MIXED; BOUNDARY="%s" - ---%s -Content-Type: TEXT/ALTERNATIVE; CHARSET=US-ASCII - - ---%s -Content-Type: TEXT/PLAIN; CHARSET=iso-8859-1 -Content-Transfer-Encoding: QUOTED-PRINTABLE -Content-Description: Plaintype part of message - -See mom, it will crash ---%s -Content-Type: TEXT/HTML; CHARSET=iso-8859-1 -Content-Transfer-Encoding: QUOTED-PRINTABLE -Content-Description: HTML part of message - -See mom, it will <b>crash</b> ---%s-- diff --git a/ext/imap/tests/imap_utf8.phpt b/ext/imap/tests/imap_utf8.phpt deleted file mode 100644 index dd432862f7..0000000000 --- a/ext/imap/tests/imap_utf8.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -imap_utf8() tests ---SKIPIF-- -<?php if (!extension_loaded("imap")) print "skip"; ?> ---FILE-- -<?php - -var_dump(imap_utf8("")); -var_dump(imap_utf8(1)); -var_dump(imap_utf8(array(1,2))); -var_dump(imap_utf8("test")); - -echo "Done\n"; -?> ---EXPECTF-- -string(0) "" -string(1) "1" - -Notice: Array to string conversion in %s on line %d -string(5) "Array" -string(4) "test" -Done |