PATH:
opt
/
alt
/
tests
/
alt-php82-pecl-mailparse_3.1.8-1.el8
/
tests
--TEST-- Fix #74233 (Parsing multi Content-Disposition causes memory leak) --SKIPIF-- <?php if (!extension_loaded("mailparse")) die("skip mailparse extension not available"); ?> --FILE-- <?php $msg = <<<EOD Subject: To: root@example.com mime-version: 1.0 Content-Type: multipart/mixed; boundary="=___BOUNDARY___" --=___BOUNDARY___ Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit --=___BOUNDARY___ Content-Type: text/plain; name="test.txt" Content-Disposition: attachment; filename="test.txt" Content-Disposition: attachment; filename="test2.txt" Content-Transfer-Encoding: base64 dGVzdA== --=___BOUNDARY___-- EOD; new MimeMessage('var', $msg) !== false; ?> --EXPECT--
[-] 003.phpt
[edit]
[-] 011.phpt
[edit]
[-] bug001.phpt
[edit]
[-] bug81403.phpt
[edit]
[-] 008.phpt
[edit]
[-] 012-var.phpt
[edit]
[-] gh24.phpt
[edit]
[-] gh30.phpt
[edit]
[-] 005.phpt
[edit]
[-] bug73110.phpt
[edit]
[-] bug74223.phpt
[edit]
[-] gh29.phpt
[edit]
[-] 012.phpt
[edit]
[-] gh19.phpt
[edit]
[-] parse_test_messages.phpt
[edit]
[-] gh21.phpt
[edit]
[+]
..
[-] gh22.phpt
[edit]
[-] bug81422.phpt
[edit]
[-] 007.phpt
[edit]
[-] 002.phpt
[edit]
[-] 009.phpt
[edit]
[-] 006.phpt
[edit]
[-] bug75825.phpt
[edit]
[-] 010.phpt
[edit]
[+]
testdata
[-] 012-stream.phpt
[edit]
[-] 013.phpt
[edit]
[-] 004.phpt
[edit]
[-] 001.phpt
[edit]