annotate vendor/pear/mail_mime/tests/test_Bug_20564.phpt @ 58:082a19037887
default tip
More cleaning up php8 Warnings/deprecations
| author |
Charlie Root |
| date |
Wed, 15 Oct 2025 14:06:01 -0400 |
| parents |
1e000243b222 |
| children |
|
| rev |
line source |
|
0
|
1 --TEST--
|
|
|
2 Bug #20564 Unsetting headers
|
|
|
3 --SKIPIF--
|
|
|
4 --FILE--
|
|
|
5 <?php
|
|
|
6 include("Mail/mime.php");
|
|
|
7
|
|
|
8 $mime = new Mail_mime;
|
|
|
9 $mime->setSubject('test');
|
|
|
10
|
|
|
11 $headers = $mime->headers(array('Subject' => null), true);
|
|
|
12 echo array_key_exists('Subject', $headers) ? '1' : '0';
|
|
|
13 --EXPECT--
|
|
|
14 0 |