summaryrefslogtreecommitdiff
path: root/ext/imap/tests
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-10-10 19:19:33 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-10-10 19:19:47 +0200
commit7d085c87acb8ee2579cc27e8e51310741cb56c55 (patch)
tree426d983aaa39447c6ef991572089e38b06ba4c72 /ext/imap/tests
parent2a545ba946033528d38ccfec46fdd592c1eb4857 (diff)
parentb2b9e2e87e780d814ffc6ceeaf1b546a14e76799 (diff)
downloadphp-git-7d085c87acb8ee2579cc27e8e51310741cb56c55.tar.gz
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Fix #80213: imap_mail_compose() segfaults on certain $bodies
Diffstat (limited to 'ext/imap/tests')
-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