-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #27 MimeMessage::__construct() throws TypeError with $mode=stream
- Loading branch information
1 parent
59e040b
commit 80133bc
Showing
6 changed files
with
59 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--TEST-- | ||
Check mailparse_mimemessage_extract_uue (stream mode) | ||
--SKIPIF-- | ||
<?php | ||
/* vim600: sw=4 ts=4 fdm=marker syn=php | ||
*/ | ||
if (!extension_loaded("mailparse")) print "skip"; ?> | ||
--FILE-- | ||
<?php | ||
$fp = fopen(dirname(__FILE__) . "/testdata/oeuue", "rb"); | ||
$msg = new MimeMessage("stream", $fp); | ||
var_dump( $msg->extract_uue(0, MAILPARSE_EXTRACT_RETURN)); | ||
fclose($fp); | ||
?> | ||
--EXPECT-- | ||
string(88) "FooBar - Baaaaa | ||
|
||
Requirements: | ||
o php with mailparse | ||
o virus scanner (optional) | ||
|
||
|
||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--TEST-- | ||
Check mailparse_mimemessage_extract_uue (var mode) | ||
--SKIPIF-- | ||
<?php | ||
/* vim600: sw=4 ts=4 fdm=marker syn=php | ||
*/ | ||
if (!extension_loaded("mailparse")) print "skip"; ?> | ||
--FILE-- | ||
<?php | ||
$var = file_get_contents(dirname(__FILE__) . "/testdata/oeuue"); | ||
$msg = new MimeMessage("var", $var); | ||
var_dump( $msg->extract_uue(0, MAILPARSE_EXTRACT_RETURN)); | ||
?> | ||
--EXPECT-- | ||
string(88) "FooBar - Baaaaa | ||
|
||
Requirements: | ||
o php with mailparse | ||
o virus scanner (optional) | ||
|
||
|
||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters