~ubuntu-branches/ubuntu/quantal/php5/quantal

« back to all changes in this revision

Viewing changes to ext/mbstring/tests/mb_send_mail06.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Sean Finney
  • Date: 2009-07-01 09:12:10 UTC
  • mto: (0.9.1) (1.1.17 upstream)
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: james.westby@ubuntu.com-20090701091210-go0h6506p62on17r
Tags: upstream-5.3.0
Import upstream version 5.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
mb_send_mail() test 6 (lang=Traditional Chinese)
 
3
--SKIPIF--
 
4
<?php
 
5
if (!function_exists("mb_send_mail") || !mb_language("Traditional Chinese")) {
 
6
        die("skip mb_send_mail() not available");
 
7
}
 
8
if (!@mb_internal_encoding('BIG5')) {
 
9
        die("skip BIG5 encoding is not available on this platform");
 
10
}
 
11
?>
 
12
--INI--
 
13
sendmail_path=/bin/cat
 
14
--FILE--
 
15
<?php
 
16
$to = 'example@example.com';
 
17
 
 
18
/* default setting */
 
19
mb_send_mail($to, mb_language(), "test");
 
20
 
 
21
/* Traditional Chinese () */
 
22
if (mb_language("traditional chinese")) {
 
23
        mb_internal_encoding('BIG5');
 
24
        mb_send_mail($to, "���� ".mb_language(), "����");
 
25
}
 
26
?>
 
27
--EXPECTF--
 
28
To: example@example.com
 
29
Subject: %s
 
30
Mime-Version: 1.0
 
31
Content-Type: text/plain; charset=%s
 
32
Content-Transfer-Encoding: %s
 
33
 
 
34
%s
 
35
To: example@example.com
 
36
Subject: =?BIG5?B?tPrF5yBUcmFkaXRpb25hbCBDaGluZXNl?=
 
37
Mime-Version: 1.0
 
38
Content-Type: text/plain; charset=BIG5
 
39
Content-Transfer-Encoding: 8bit
 
40
 
 
41
����