summaryrefslogtreecommitdiff
path: root/ext/imap/tests/bug80213.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/imap/tests/bug80213.phpt')
-rw-r--r--ext/imap/tests/bug80213.phpt21
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/imap/tests/bug80213.phpt b/ext/imap/tests/bug80213.phpt
new file mode 100644
index 0000000000..9a7961df77
--- /dev/null
+++ b/ext/imap/tests/bug80213.phpt
@@ -0,0 +1,21 @@
+--TEST--
+Bug #80213 (imap_mail_compose() segfaults on certain $bodies)
+--SKIPIF--
+<?php
+if (!extension_loaded('imap')) die('skip imap extension not available');
+?>
+--FILE--
+<?php
+$envelope = [];
+$body = [[
+ 'type.parameters' => ['param'],
+ 'disposition' => ['disp'],
+], [
+ 'type.parameters' => ['param'],
+ 'disposition' => ['disp'],
+]];
+imap_mail_compose($envelope, $body);
+echo "done\n";
+?>
+--EXPECT--
+done