0
|
1 --TEST--
|
|
2 Bug #3488 Sleep/Wakeup EOL Consistency - Part 2
|
|
3 --SKIPIF--
|
|
4 if (!is_readable('sleep_wakeup_data')) {
|
|
5 echo "skip No data. Part 1 must run first.\n";
|
|
6 }
|
|
7 --FILE--
|
|
8 <?php
|
|
9 require_once('Mail/mime.php');
|
|
10 $filename = 'sleep_wakeup_data';
|
|
11 $fp = fopen($filename, 'r');
|
|
12 $smm = fread($fp, filesize($filename));
|
|
13 fclose($fp);
|
|
14 @unlink($filename);
|
|
15
|
|
16 $mmData = unserialize($smm);
|
|
17 $mmData['mm']->get();
|
|
18 $x = $mmData['mm']->headers();
|
|
19
|
|
20 list($h1) = explode("\n", $mmData['header']);
|
|
21 list($h2) = explode("\n", $x['Content-Type']);
|
|
22
|
|
23 echo ($h1 == $h2) ? "Match" : "No Match";
|
|
24
|
|
25 ?>
|
|
26 --EXPECT--
|
|
27 Match
|